Skip to content
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

Bump stimulus_reflex to 3.5.1 and cable_ready to 5.0.5 #12472

Conversation

dacook
Copy link
Member

@dacook dacook commented May 14, 2024

As of 20 May 2024, there's only one unsolved new issue, but it doesn't seem to affect this codebase.

I'd recommend just viewing the overall diff, which shows just the upgrades as described above.

What should we test?

These are underlying frameworks used for the dynamic functionality on the below pages. Simply checking that they work as usual, with no errors in the dev console should be sufficient.

  • BUU Bulk Edit Products - Delete (/admin/products with admin_style_v3)
  • A report, eg /admin/reports/packing/customer (old or new design, doesn't matter)
  • Admin Enterprise > Connected app
  • Admin Orders > Any bulk action

Dependencies

dependabot bot and others added 6 commits May 14, 2024 13:54
Bumps [stimulus_reflex](https://github.com/stimulusreflex/stimulus_reflex) from 3.5.0-rc3 to 3.5.0-rc4.
- [Release notes](https://github.com/stimulusreflex/stimulus_reflex/releases)
- [Changelog](https://github.com/stimulusreflex/stimulus_reflex/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stimulusreflex/stimulus_reflex/commits)

---
updated-dependencies:
- dependency-name: stimulus_reflex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Unfortunately the testing framework doesn't support the latest version of StimulusReflex.
This is a third party framework that doesn't seem to be maintained. Maybe we should convert these to ActionCable tests.
It contains a fix for stimulus_reflex 3.5.0-rc4, but hasn't been released yet.
podia/stimulus_reflex_testing#21

Now the user reflex spec works, but the products spec needs another fix. But we plan to remove it soon anyway.
There wasn't a simple path to upgrade them separately. I think it's fine to do both at once.
I ran stimulus_reflex:install. It skipped over most things, but did add gem redis-session-store without explanation. It's mentioned in the [documentation](https://docs.stimulusreflex.com/hello-world/setup.html#session-storage), but I don't think it's relevant to us so I removed it again.
@dacook
Copy link
Member Author

dacook commented May 14, 2024

Doesn't matter how many times I stop spring, clear cache or restart the dev server, it refuses to acknowledge the cable_ready version. Seems to be the same problem on CI.

Screenshot 2024-05-14 at 3 30 52 pm

See yarn.lock

cable_ready@5.0.4, cable_ready@^5.0.4:
  version "5.0.4"
  resolved "https://registry.yarnpkg.com/cable_ready/-/cable_ready-5.0.4.tgz#88b5bff27871be402f6ea049d65126bb1995d147"
  integrity sha512-HZLj3SjgEDB4H2GqtKHmg2lOu8YCti0hsPR9XC2mMfz6WOkHK4FWt1/NJ0OIKAcQAEnxEJEtlIgBv6tP1m958g==

This was the same problem back here: #12235 (comment)
It was resolved by by further updating the gem, so I guess we need to wait for the next update...

@dacook dacook self-assigned this May 14, 2024
@sigmundpetersen
Copy link
Contributor

Yes, looks like v5.0.5 will fix this stimulusreflex/cable_ready@v5.0.4...v5.0.5 👍

@dacook
Copy link
Member Author

dacook commented May 15, 2024

🙄 Groan, why couldn't they have released it a day earlier and saved my time!!!!

@dacook dacook changed the title Bump stimulus_reflex to 3.5.0 and cable_ready to 5.0.4 Bump stimulus_reflex to 3.5.1 and cable_ready to 5.0.5 May 20, 2024
@dacook dacook marked this pull request as ready for review May 20, 2024 06:01
Copy link
Member

@mkllnk mkllnk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sometimes it really doesn't seem worth it to work with bleeding-edge tools. These updates have been painful.

@dacook
Copy link
Member Author

dacook commented May 21, 2024

I agree. I actually delayed updating these gems, but decided we should keep them relatively up to date while we still use them.
Hopefully we can avoid touching them for a while now..

@dacook
Copy link
Member Author

dacook commented May 21, 2024

Moving to test ready as its quite similar to the previously approved PR.

@filipefurtad0
Copy link
Contributor

Hey @dacook ,

Tested what you've suggested - thanks so much for that:

  • BUU Bulk Edit Products - Delete (/admin/products with admin_style_v3) -> deleted several products, all good. No console errors.
  • A report, eg /admin/reports/packing/customer (old or new design, doesn't matter) -> all good, report generated for the indicated dates
  • Admin Enterprise > Connected app -> app connects to Discovery Regenerative as expected
  • Admin Orders > Any bulk action -> bulk printed invoices for two complete, paid orders. All as before.

Merging.

@filipefurtad0 filipefurtad0 merged commit b4d4faa into openfoodfoundation:master May 22, 2024
54 checks passed
@dacook dacook removed the pr-staged-au staging.openfoodnetwork.org.au label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants