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

Prevent loss of attributes with reschedule #7006

Closed
wants to merge 1 commit into from

Conversation

laritakr
Copy link
Contributor

@laritakr laritakr commented Feb 6, 2025

Fixes

This commit changes to use a temporary variable to hold the job attributes, so that when CreateWorkJob is rescheduled due to any errors, the attributes that were deleted do not get left out of the resubmitted job's attributes.

@samvera/hyrax-code-reviewers

This commit changes to use a temporary variable to hold
the job attributes, so that when CreateWorkJob is rescheduled
due to any errors, the attributes that were deleted do not get
left out of the resubmitted job's attributes.
@laritakr laritakr added the notes-bugfix Release Notes: Fixed a bug label Feb 6, 2025
Copy link

github-actions bot commented Feb 6, 2025

Test Results

    13 files  ±0      13 suites  ±0   2h 47m 11s ⏱️ - 4m 4s
 6 833 tests +1   6 533 ✅ ±0  299 💤 ±0  1 ❌ +1 
18 101 runs  ±0  17 622 ✅  - 2  477 💤 ±0  2 ❌ +2 

For more details on these failures, see this check.

Results for commit 94fa6a4. ± Comparison against base commit 5b03f59.

This pull request removes 366 and adds 367 tests. Note that renamed tests count towards both.
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to create #<Hyrax::PermissionTemplate:0x00007f1dee2c75a0>
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to create #<Hyrax::PermissionTemplate:0x00007fd7baffec60>
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to create #<Hyrax::PermissionTemplate:0x00007fed1e19c6d0>
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to create #<Hyrax::PermissionTemplateAccess:0x00007f1decb548a0>
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to create #<Hyrax::PermissionTemplateAccess:0x00007fd7b396f3d8>
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to create #<Hyrax::PermissionTemplateAccess:0x00007fed21bcaa00>
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to destroy AdminSet: 0a7a0ecf-5a43-4cb0-ad08-cb47adfcb322
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to destroy Hyrax::AdministrativeSet: 08d73801-d28a-49d0-8c4f-ee4604573baa
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to destroy Hyrax::AdministrativeSet: 0ed58e92-069e-4b1e-806e-d7df3162ea01
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to edit AdminSet: 63f2d00f-1e8b-4cfe-854d-e6fcb00b7047
…
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to create #<Hyrax::PermissionTemplate:0x00007f4c0edcf288>
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to create #<Hyrax::PermissionTemplate:0x00007f93fe40c1c8>
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to create #<Hyrax::PermissionTemplate:0x00007facfbfe67d0>
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to create #<Hyrax::PermissionTemplateAccess:0x00007f4c0d338fc8>
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to create #<Hyrax::PermissionTemplateAccess:0x00007f93f837f508>
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to create #<Hyrax::PermissionTemplateAccess:0x00007facfc97f508>
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to destroy AdminSet: 8b75dbd6-9fa2-43b8-b2f2-b6e44c363a3c
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to destroy Hyrax::AdministrativeSet: 0c94e696-01d1-4c48-be3d-e82f015b222b
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to destroy Hyrax::AdministrativeSet: fc911ae2-893b-4776-bf71-7c1b0e73895d
spec.abilities.ability_spec ‑ Hyrax::Ability AdminSets and PermissionTemplates a user without edit access is expected not to be able to edit AdminSet: ee64523d-55f9-4980-a1dd-39131a064cba
…

@randalldfloyd
Copy link
Contributor

We're going to roundtrip this one back to the top of main after a new v5.0.x release, which will contain this same fix merged in #7004.

@laritakr laritakr deleted the CreateWorkJob-fix-to-main branch February 6, 2025 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes-bugfix Release Notes: Fixed a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants