Show all constraints when formatting the config name - #1430
Conversation
This is important for OSS, who cannot add their modifiers to the hardcoded `NAMED_CONSTRAINT_SETTINGS` dict.
|
This pull request has been imported. If you are a Meta employee, you can view this in D114419843. (Because this pull request was imported automatically, there will not be any future comments.) |
|
Please give some better description in the PR, we should update the contribution guidelines for this. I'd want at least the output and what it looks like. I'd prefer some kind of setup where the user can set this function in their Probably want @scottcao to think about how he'd want this to be setup too. |
| if constraint_name: | ||
| name_list.append(constraint_name) | ||
|
|
||
| # Append any remaining constraints not covered by NAMED_CONSTRAINT_SETTINGS, |
There was a problem hiding this comment.
I'd been meaning to put a replacement of NAMED_CONSTRAINT_SETTINGS in set_cfg_constructor. Is that something which is possible/more advisable to solve this problem?
There was a problem hiding this comment.
FWIW, the custom cfg_name that I ended up writing ended up having quite a bit more logic than is conveniently handled by a list of transformers, so it's unclear to me that just expanding the list/making it configurable is the right way to go.
|
I've had some more time to play with this, and I agree that this is not the right approach. I think that we need to make For now, I am going to wrap |
This is important for OSS, who cannot add their modifiers to the hardcoded
NAMED_CONSTRAINT_SETTINGSdict.