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

Ruby 3.2 upgrade #255

Draft
wants to merge 140 commits into
base: master
Choose a base branch
from
Draft

Ruby 3.2 upgrade #255

wants to merge 140 commits into from

Conversation

paranoicsan
Copy link
Contributor

@paranoicsan paranoicsan commented Mar 13, 2023

TODO:

  • 1. Resources page: Check Directory picker (used on resource edit page)
  • 2. Resources page: AssociationPicker
  • 3. Resources page: AssociationPickerItem.jsx
  • 4. Resources page: AssociationPickerResults.jsx
  • 5. Resources page: AssociationPickerWindow.jsx
  • 6. Admin Panel: Resources page
  • 7. Admin Panel: Lessons page
  • 8. Admin Panel: Materials page
  • 9. Admin Panel: Lesson Import
  • 10. Admin Panel: Material Import
  • 11. Admin Panel: Bundling
  • 12. Admin Panel: Users page
  • 13. Admin Panel: Standards page
  • 14. Admin Panel: Access Codes page
  • 15. Admin panel: support of multiple reimports (UI + backend)
  • 16. Admin panel: Batch reimport

@paranoicsan paranoicsan self-assigned this Mar 13, 2023
@paranoicsan paranoicsan added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Mar 13, 2023
Removed `Lcms::Engine::DocumentPresenter#short_url` method.
Also upgrade acts-as-taggable-on to v9.0 for Rails 7 support.
And move it to `development dependencies`
1. Updated universal Dockerfile
2. Remove legacy images and styles
3. Introduce new way ReactJS components are rendered - Admin::ReactComponentsHelper#render_component
4. Cleanup unused locale keys, controllers, services and view
Trying to make it work.
- start container ONLY
- start container AND install gems ONLY
- start container, install gems AND launch yarn
This solves wrong paths errors
Updated the material filtering logic to support multiple grade values. Added a value transformation method for orientation in the search form. Removed 'grade' from strict metadata and replaced it with 'grades' to accommodate multi-value inputs.
This commit introduces a new seed file to populate the development database with predefined standards. The script adds three sample standards to the Lcms::Engine::Standard model, facilitating easier development and testing.
Minor updates
Possibly can break the inherited controllers. Apply changes carefully.

Unified query handling by extracting common query logic into `Lcms::Engine::Queryable` concern. Updated controllers and views to use the new concern for setting query parameters and constructing query structs, improving code maintainability and reducing redundancy.

This allows us to get rid of OpenStruct usage completely.
[BREAKING] Refactor query handling in admin controllers
Update `Queryable` module to namespace query attribute keys and add a new guide document for overriding controllers in Rails 7. This enhances code structure and provides a clear example for extending controller functionality in a Rails 7 application.
Added query parameters to redirection paths in both documents and materials controllers, ensuring consistent parameter passing. Also updated the corresponding views to maintain query parameters in navigation links, improving user navigation and state retention.
Upgraded CKEditor from version 4.20.0 to 4.22.1 and changed gem dependency to ensure minimum version 5.1.3.

4.22 is the last Open Source version available. For now, we should hide
the fake warning about security. It seems the warning is shown to move
users to v5 and buy the license.
Update CKEditor version
Add resource destruction callback to Document model. Ensure that associated resources are destroyed when a Document is deleted. Added tests to verify this behavior in the Document model's spec.
- updates some gems
- fix the RBS to comply with new RBS collections
- refactor Resource model to make it more readable
- FIX thumbnail class (bugs found with RBS type check)
Destroy lessons's resources
Refactor the `where_metadata_in` method to handle additional table names. This change introduces a case statement to correctly associate the model name with its corresponding database table, raising an error for unknown names. This enhances the method's robustness and extends its support to include the `Dese::Lcms::Engine::Document` model.
shlag3n and others added 7 commits November 7, 2024 20:50
Implemented:
- WebhookConfiguration and WebhookCallJob
- Api::BaseController with HMAC authentication (using SHA256).
- api/resources

Additionally:
Updated gem version
Specified foundation-rails version to avoid issues with scss
rbs_rails added to help with rbs definitions; rbs definitions for new files added
Add Webhook feature and api to get resources
[hotfix] fixed strip content to respect tag's placeholder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants