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: Neo4j - impossible to save or author passage due to language property erased when "Save" button is clicked in "Edit Passage Properties" #494

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

mccar
Copy link
Contributor

@mccar mccar commented Nov 17, 2023

Ticket - https://oat-sa.atlassian.net/browse/AUT-3382

Goal

Fix issue with language on edit passage properties

Changelog

  • fix: edit passage properties

How to test

After update and apply migrations try to edit form

…perty erased when "Save" button is clicked in "Edit Passage Properties"
@mccar mccar changed the title fix: Neo4j - impossible to save or author passage due to language pro… fix: Neo4j - impossible to save or author passage due to language property erased when "Save" button is clicked in "Edit Passage Properties" Nov 17, 2023

public function down(Schema $schema): void
{
// do nothing

Choose a reason for hiding this comment

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

Maybe throw this exception here as it cannot be reverted:

        throw new IrreversibleMigration('Reverting this migration does not make sense');

Copy link
Contributor

@vbyndych vbyndych left a comment

Choose a reason for hiding this comment

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

Review Checklist

  • New code is covered by tests (if applicable)
  • Tests are running successfully (old and new ones) on my local machine (if applicable)
  • New code respects code style rules
  • New code respects best practices
  • New code is not subject to concurrency issues (if applicable)
  • Feature is working correctly on my local machine (if applicable)
  • Acceptance criteria are respected
  • Pull request title and description are meaningful
  • Pull request's target is not master
  • Commits are following conventional commits
  • Commits messages are meaningful
  • Commits are atomic

@vbyndych vbyndych self-assigned this Nov 22, 2023
…perty erased when "Save" button is clicked in "Edit Passage Properties"
Copy link

Version

Target Version 12.40.1
Last version 12.40.0

There are 0 BREAKING CHANGE, 0 feature, 2 fixes

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b22a33f) 37.64% compared to head (521da40) 37.64%.
Report is 1 commits behind head on develop.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #494   +/-   ##
==========================================
  Coverage      37.64%   37.64%           
  Complexity       797      797           
==========================================
  Files             96       96           
  Lines           2882     2882           
==========================================
  Hits            1085     1085           
  Misses          1797     1797           

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

@mccar mccar merged commit e3f8f53 into develop Nov 29, 2023
4 of 5 checks passed
@mccar mccar deleted the fix/AUT-3382/neo4j-impossible-to-save-author-passage branch November 29, 2023 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants