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

Fix the check on select2 translations asset existence #5582

Merged

Conversation

elia
Copy link
Member

@elia elia commented Jan 5, 2024

Summary

In environment expecting precompiled assets Rails.application.assets is nil and we should fall back on checking the manifest.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

@elia elia added the backport-v4.3 Backport this pull-request to v4.3 label Jan 5, 2024
@elia elia self-assigned this Jan 5, 2024
@elia elia requested a review from a team as a code owner January 5, 2024 12:44
@github-actions github-actions bot added the changelog:solidus_backend Changes to the solidus_backend gem label Jan 5, 2024
@elia elia force-pushed the elia/fix-select2-locales-loading-with-precompiled-assets branch from 27af7cb to f7c776a Compare January 5, 2024 14:18
@github-actions github-actions bot added the changelog:repository Changes to the repository not within any gem label Jan 5, 2024
@elia elia force-pushed the elia/fix-select2-locales-loading-with-precompiled-assets branch from f7c776a to 818552f Compare January 5, 2024 14:35
Copy link

codecov bot commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (be5fea9) 88.31% compared to head (8f997be) 88.63%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5582      +/-   ##
==========================================
+ Coverage   88.31%   88.63%   +0.31%     
==========================================
  Files         116      683     +567     
  Lines        2217    16299   +14082     
==========================================
+ Hits         1958    14446   +12488     
- Misses        259     1853    +1594     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@elia elia requested a review from kennyadsl January 5, 2024 15:04
@kennyadsl
Copy link
Member

Needs a rebase?

In environment expecting precompiled assets `Rails.application.assets`
is `nil` and we should fall back on checking the manifest.
@elia elia force-pushed the elia/fix-select2-locales-loading-with-precompiled-assets branch from 818552f to 8f997be Compare January 5, 2024 15:26
@github-actions github-actions bot removed the changelog:repository Changes to the repository not within any gem label Jan 5, 2024
@elia elia merged commit 5eeae45 into main Jan 5, 2024
14 checks passed
@elia elia deleted the elia/fix-select2-locales-loading-with-precompiled-assets branch January 5, 2024 16:04
Copy link

github-actions bot commented Jan 5, 2024

💚 All backports created successfully

Status Branch Result
v4.3

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v4.3 Backport this pull-request to v4.3 changelog:solidus_backend Changes to the solidus_backend gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants