-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[Scaffolder] Review and create didn't hide when change options #12948
Comments
I think this is because of how the state is set. It's just spread into the existing state, rather than replacing the existing state for each step. So if it's set once it's never reset. Do you want to have a go at fixing this bug? I think what we want to do is to keep an array for each step of the state then merge them together at the end rather than keeping a running state. |
@benjdlambert , I created PR for this issue. PR: #12966 Could you help me review it? Thanks. |
This issue fixed on PR #13017 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@tritri251214 I am still experiencing this issue when testing the original YAML you posted above with Backstage version Here are the abbreviated results of running `yarn backstage-cli info: yarn run v1.22.19
$ REDACTED/backstage/node_modules/.bin/backstage-cli info
OS: Darwin 22.4.0 - darwin/arm64
node: v18.16.0
yarn: 1.22.19
cli: 0.22.6 (installed)
backstage: 1.13.1
Dependencies:
...
@backstage/plugin-scaffolder-backend 1.13.1
@backstage/plugin-scaffolder-common 1.2.7
@backstage/plugin-scaffolder-node 0.1.2
@backstage/plugin-scaffolder-react 1.3.0
@backstage/plugin-scaffolder 1.13.0
... |
Can you try this with the |
Hi @benjdlambert, thank you for the fast response! I just tested using the master branch (6c0867b) which appears to come with scaffolder/next installed. So instead I just went to http://localhost:3000/settings/feature-flags and enabled Unfortunately even with the feature flag toggled on the same issue still occurred. I've attached a video below showing it. Backstage_-_Scaffolder_Next_-_Issue_12948.mov |
Ah ok - I've re-opened this as I think that we need to add the |
@benjdlambert I'd be happy to give it a try, although I'll confess I'm not sure where to add it since I'm very new to TypeScript and this codebase. |
I think you might be able to add it to this: backstage/plugins/scaffolder-react/src/next/components/Stepper/Stepper.tsx Lines 175 to 186 in 2589d22
scaffolder/next route and see if that works 🤞
|
Great minds think alike! Over the weekend I tried adding it to the following files:
Unfortunately there was no change in behavior. I also tried adding When you say "try it locally using the scaffolder/next route", does that encompass doing anything beyond using the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Any update on a fix for the issue of Review and Create not resetting/hiding the form fields after changing selections? Looking for a fix that doesn't include the experimental version of scaffolder/next plugin. |
Hmm so trying this in the editor in the new playground this seems to work upstream, so I think we just need to bump the library and turn on Here's something that seems to work here |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@benjdlambert Should this work now? Tested this on our Backstage instance that uses the |
@Teemukoivumaa sorry I think this got stale. Will re-open this, do you want to perhaps raise a PR with the using the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@benjdlambert Got some time (and motivation) to try to fix this, but it just doesn't seem to work. I have set the See the demo video: 2024-03-24.14-21-15.mp4 |
Still a problem |
bandicam.2022-08-03.15-04-51-966.mp4
Custom Field Extension file:
Expected Behavior
Hide Custom Field in Review and create
Actual Behavior
Custom Field displayed in Review and create
Steps to Reproduce
Context
Your Environment
Browser Information:
Output of
yarn backstage-cli info
:The text was updated successfully, but these errors were encountered: