-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Feat: Adding limit field to template and Taks, overriding the CLI args from task. #2420
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Added limits fields to the template form and runs task dialog - Created DB fields for this new field to be stored - Changed Models to support parsing from database or api json - Overriding implemented of the limit from task to template to enable pre-run changes to take effect - Added language element for "limit" - Fixed a JS error that was getting thrown due to item elements was being tried to set while item was undefined - Made run dialog to display the args defined on template to make it obvious for the end-user to see what's going to be ran - Made it also override the args by the task to template, so that if you change the args on pre-run it's really a override.
fiftin
reviewed
Oct 18, 2024
- I previously made it to run by overriding template CLI args no matter what - This might cause the problem because there might be run with task dialog with integration which means it will override all template args to null - I implemented a helper function to detect if task args are exists and they are actually overridig the template cli args - Then I just replace template CLI with task override and just use template args there.
Not sure why codacy fails though... |
Thank you! Reviewing |
Thanks waiting for the response, we are kind of waiting this for migration. |
fiftin
requested changes
Oct 28, 2024
… for errCliOverrideParseError
When you override template args in new task dialog the isCLIArgsOverridden manages that well, but when you remove a CLI arg in new task dialog since it doesn't exist anymore the iteration doesn't know it and it falls back to template which it does exist there and then gets implemented, to solve this: - I added a new non-database field to front-end and backend called RemovedArguments - In the front-end I made a new data binding and when an template declarated argument gets deleted on task dialog it populates it to removed_arguments object - Then when this get sent to the back-end, then back-end first removes and RemovedArguments from templateExtraArgs, so this prevents falling back to template args and finding it again there - Then it does the rest same as before to compare and override if there are existing arguments both in template and task with same key but different values. - Also ArgsPicker was problematic on populating CLI args on task dialog especially for re-runs because it wasn't getting populated correctly when you were trying for few times, and also it wasn't population a "rerun" with whatever arguments was selected there before, so it would make it an actual re-run. - I also fixed a bug for re-run button on TaskList, word `Re` was getting declared twice as hardcoded prefixed to the word `run`. - Fixed the api-docs and ran the tests.
Hi @Gnyblast I reviewing. |
fiftin
requested changes
Nov 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix for #1357 and making override of the CLI args from task run dialog: