-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project versioned settings log constant comment "no comments" #164
Comments
Hi @schernov-xo. I'll have a look too see if there is a way I can pass a comment when I persist the hook. That code predates any of the settings stuff. I'm using the method of storing settings which is compatible with TC9 and below. I'll take a later in the week when I'm back from vacation. No internet here and not computer! 😁 |
Hi @schernov-xo I had a look a the code, and I can't see how the comment could be set using the |
Anton from Jetbrains has replied and shown me how to do this. I'm embarrassed to say I was looking at the wrong code, but he found it. I'll refactor that code this week and get it out as part of 1.2.0 alpha7. I see you're using 1.1, so I'll back port it and do a 1.1 release as well. Hopefully this week or over the weekend. Thanks for raising this issue. I'm happy to make tcWebHooks better! |
Perfect, thanks! |
Hi @schernov-xo I have the comments now working. I've not setup a synchronised project yet, but I can see comments appearing in the project audit log. Do you think the comments are right? Should I have more description? This is on 1.2.0 alpha7 which will be released this weekend. I'll check the code on 1.1.x.x and see how different it is. |
Looking at the 1.1 code, the infrastructure to shift the logic to does not exist. I'll hack it in, considering 1.1 will be old in a few months when 1.2 is finished. |
Thanks. Will check it this weekend |
Eeek. I haven't pushed. Sorry. Had a sick kid all weekend. |
Now pushed to this branch: https://github.com/tcplugins/tcWebHooks/compare/issue_164-add_commit_comment_on_edit |
I have some further tidy up to do in the controller, but this works, and you can test that the messages you get are useful. Btw. Master is the 1.2.0 branch, so you're now running 1.2.0 alpha 7. |
Oh! They definitely should be being migrated. I wonder why that happened. Could you share an old copy of your |
Sure. Note: it's not a Root project, it's a project with parent=root
|
Since you're saving all your changes into git, do you have a version of the plugin settings with the webhooks removed after the upgrade? I'm trying to figure out if they were migrated and then removed, or migrated and then disappeared on edit. Or maybe some other event occurred and code did not handle the event correctly. You should be able to tell when the file was migrated. It will have added the queue event configuration, and removed the payload format XML attribute. |
Thanks for the XML file. It's a legacy JSON webhook. I'm sure all that code is unit tested. I wonder if it's a combination of the migration and the settings in git. Time for be to setup that git stuff. Sorry about all this. |
Welcome. Glad to help. |
Interesting: Your screenshot of the XML changes show that the webhook was migrated. I can see events for queued, etc. |
Created bug #167 |
The problem here to clarify what happened is there was an intermediate version (latest master). |
Thanks for the clarification. I'm also running the latest branch for this issue, and previously was running a build off the branch that is now master. Except I have been running 1.2 for about 6 months, so it could be an issue with the upgrade. My hunch is that it's related to the settings in git. I'll need to set that up and test it, but that could be a day or two away. |
Because there is nothing I can do at this time to solve #167, I'll merge this branch in and get alpha 7 released this weekend. |
Expected Behavior
Git log of TeamCity project configuration versioned settings has clarifications of what was changed.
Current Behavior
Any changes of configuration of TeamCity webhooks are logged as "no comments" (compare to messages below on changes of other TeamCity areas):
Steps to Reproduce (for bugs)
Your Environment
Example Configuration (xml)
The text was updated successfully, but these errors were encountered: