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

Y24-433 - [BUG] AssetNotFound exception & AASM::InvalidTransition exception in Rails 7 upgrade. #378

Open
BenTopping opened this issue Oct 29, 2024 · 0 comments
Labels
Bug Size: M Medium - medium effort & risk Technical Debt Value: 3 Value to the insitute is average

Comments

@BenTopping
Copy link

BenTopping commented Oct 29, 2024

Describe the bug
This work requires the rails 7 upgrades to be restored / readied. Currently the changes are not in develop or master and will need to be remade (which can be seen in previous PRs including ones linked below).

Rails 7 release (2.2.6) was yanked because it contained the below bugs. These can both be found in the samples extraction exception history (17-18/09/24) and linked to RT #810702. The reason these exceptions are grouped is because they both occurred after the rails 7 upgrade. In order to progress this repositories dependencies and upgrade to rails 7 these bugs will need to be addressed.

A Sprockets::Rails::Helper::AssetNotFound occurred in activities#update:

  The asset "" is not present in the asset pipeline.

  app/helpers/application_helper.rb:119:in `data_asset_display_for_tube'
An AASM::InvalidTransition occurred in steps#create:

  Event 'run' cannot transition from 'pending'. Failed callback(s): [:assets_compatible_with_step_type].
  app/models/activities/tasks.rb:15:in `block in create_step'

These errors occured after the rails 7 upgrade so it is likely to be caused by an unforseen dependency breaking change.

Identify the cause of this errors, fix the problem and add tests.

@BenTopping BenTopping added Bug Size: S Small - low effort & risk Value: 3 Value to the insitute is average labels Oct 29, 2024
@psd-issuer psd-issuer bot changed the title [BUG] AssetNotFound exception in current latest release (2.2.6) Y24-433 - [BUG] AssetNotFound exception in current latest release (2.2.6) Oct 29, 2024
@BenTopping BenTopping changed the title Y24-433 - [BUG] AssetNotFound exception in current latest release (2.2.6) Y24-433 - [BUG] AssetNotFound exception & AASM::InvalidTransition in current latest release (2.2.6) Oct 29, 2024
@BenTopping BenTopping changed the title Y24-433 - [BUG] AssetNotFound exception & AASM::InvalidTransition in current latest release (2.2.6) Y24-433 - [BUG] AssetNotFound exception & AASM::InvalidTransition exception in current latest release (2.2.6) Oct 29, 2024
@BenTopping BenTopping added Size: M Medium - medium effort & risk and removed Size: S Small - low effort & risk labels Oct 29, 2024
@BenTopping BenTopping changed the title Y24-433 - [BUG] AssetNotFound exception & AASM::InvalidTransition exception in current latest release (2.2.6) Y24-433 - [BUG] AssetNotFound exception & AASM::InvalidTransition exception in Rails 7 upgrade. Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Size: M Medium - medium effort & risk Technical Debt Value: 3 Value to the insitute is average
Projects
None yet
Development

No branches or pull requests

2 participants