-
Notifications
You must be signed in to change notification settings - Fork 346
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
Add comment field to parameters #7845
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #7845 +/- ##
=============================================
- Coverage 65.64% 31.83% -33.81%
Complexity 98 98
=============================================
Files 323 719 +396
Lines 12836 82740 +69904
Branches 970 970
=============================================
+ Hits 8426 26340 +17914
- Misses 4050 54241 +50191
- Partials 360 2159 +1799
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I am -1 on this idea. The promise of a comments field being used only for humans' benefits has been repeatedly broken on other objects, and a Parameter ought to be too small to express anything complex enough to require a comment. In fact, Parameters as objects should not even exist in their own right, IMO, and - especially now that Profile layering is possible - instead just be properties of Profiles. In some respects, they are represented that way already, and that means that this amounts to, in those cases, having an unbounded number of free-form text fields on a collection of free-form text fields on a Profile. |
IMO I still need a description of some special parameters that are required for the Profile |
Any Parameter that is required for a Profile of some given type ought not to be optionally provided by the data model; instead it should be a required property of a Profile. |
@ntheanh201 - can you make it optional to show this comment field in traffic portal? for example, add a config setting like parameter.comment.show = false to the traffic portal properties file and key off that in the UI. |
Updated like this, please take a look! |
I'm still -1 on this idea. Adding tech debt doesn't seem like a good way to resolve tech debt. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Comment field is present under parameters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to amend my response. But can you verify this test failure. Looks like it needs a test update.
It has not failed because of this code, this failure is related to the integration tests themselves being broken, you can see some other commits |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
@ocket8888 Responded in #7456 (comment) because a PR is not the place to discuss the validity of an Issue. With no response after a week, I'll assume you agree and will merge |
@zrhoffman can you merge? |
If we can verify that no committers are against #7845 being merged, yes. I'll clarify in Issue #7456 :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small change needed with the migration timestamp, then it should be good to merge. Thanks!
traffic_ops/app/db/migrations/2023121910512261_add_comment_parameter.down.sql
Outdated
Show resolved
Hide resolved
traffic_ops/app/db/migrations/2023121910512261_add_comment_parameter.up.sql
Outdated
Show resolved
Hide resolved
@zrhoffman I updated it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look great, thanks a lot! :)
Closes: #7456
Add field "comment" to parameter
Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
If this is a bugfix, which Traffic Control versions contained the bug?
PR submission checklist