-
Notifications
You must be signed in to change notification settings - Fork 103
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
fix: workaround for the cascading parameters bug #357
base: master
Are you sure you want to change the base?
fix: workaround for the cascading parameters bug #357
Conversation
* addresses the issue with the rendering order of the dependent parameters * the workaround performs the following: * topologically sorts the parameters, ensuring they are updated in the correct order * tracks the updates with the clever trick which tracks the use log messages (parses the log messages to determine the status of the update(s)) * listens for changes to the parameters and ensures proper propagation of values to their dependencies * (optionally) handles the visibility during updates to improve the user experience
As stated above, please note that the failing tests are to be expected. The goal of this PR is not to get merged. Instead, we want to demonstrate how we approached in solving the issue. We would like to comment on our approach for this issue:
|
Hi Thanks for providing a workaround and starting the discussion, even if it doesn't necessarily fix the issue, it may point us at the right direction. After the latest release (a few days ago?) I promised other users of tap plugin to fix some issues there and maybe cut a tap release too. Will come back to this one after that is done. For now, what I might say is this to whoever worked on the issue:
Cheers |
(And great job!!) |
You are welcome! Looking forward to the resolution of this issue and we hope that these insights were at least of some value to you. Best regards, |
Hi @kinow , We sponsored the work on this on behalf of our client , @matijaaa did an awesome job developing the workaround and submitting the code for the PR . |
I'm not extremely sure this is related but I had a similar issue with reactive parameters not being updated when I type stuff in the filter. It actually gets fixed for the current page if I input an easy peasy |
Long story short, Jenkins dropped jquery but we add it via a plugin. The issue is that the work to make the plugin asynchronous also had to deal with the jquery removal. I disabled asynchronous calls and tried to revert the calls to $ to use So your issue might be something I forgot to fix, @QcFe , however, I will have a look at this too. You can never be too sure, and your comment might be a useful clue to fix the issue. Thanks for the comment!! 🙌 |
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.
Hi! Just passing by to say I haven't forgotten about this PR. There were multiple pending PRs from dependabot and contributors, which I have just finished reviewing and merging everything. 2.8.5 is being released right now, and then we can rebase and start over here to review without the other changes. Sorry the delay, wait a bit more and I hope to come back with a more useful update 👍
Changes (taken from commit message)
The issue
JENKINS-73935 (links to multiple similar reported issues)
Commentary
This is a workaround. The project maintainers will more than likely reject this actual PR itself (since it appends logic to the original logic, creating a minor mess), but the goal of this PR submission is to start a discussion and bug resolution process regarding the described ticket listed above.
We want to inspire the maintainers with our approach on solving the issue.
NOTE: Keep in mind that in our original fix, we actually append the code to the transpiled JavaScript file (
adjuncts/<xxxxxxxx>/org/biouno/unochoice/stapler/unochoice/UnoChoice.js
), not to this file. But still, the code was appended to this source file just for symbolic reasons. Therefore, the tests are expected to fail.In the provided code, you can see how our team approached solving the issue with a somewhat unconventional workaround, but the end goal is achieved - we resolved the issue related to the cascading parameters ordering bug.
Feel free to refer to the ticket.
Additionally, feel free to check out our dedicated repository containing the fix as well as a build script used for producing a patched variant of the plugin bundle:
hossted-prs/jenkins-ac-plugin-cascading-workaround