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 GttMapLayer position default (0 to nil) #275

Merged
merged 1 commit into from
May 24, 2024

Conversation

sanak
Copy link
Member

@sanak sanak commented Apr 8, 2024

Fixes #274.

Changes proposed in this pull request:

  • Fix GttMapLayer position default (0 to nil)

Explanation:

  1. acts_as_positioned is defined in the following Redmine core side, and before_save - set_default_position assumes that position default is nil.
  2. But current migration specifies position default with 0.
  3. There was referable past migration in Redmine core side
  4. So, I applied same from the following migrate command (link) and above except default 1 to 0.
    bundle exec rails generate redmine_plugin_migration redmine_gtt remove_gtt_map_layer_position_default

I confirmed that this changes fix the issue in #274.

@gtt-project/maintainer

@sanak sanak requested review from smellman and dkastl April 8, 2024 06:49
@sanak sanak self-assigned this Apr 8, 2024
@sanak
Copy link
Member Author

sanak commented May 13, 2024

Well, I will consider to add some tests which fail without this migration.

@dkastl dkastl merged commit 4210839 into next May 24, 2024
10 checks passed
@dkastl dkastl deleted the fix/gtt-map-layer-position-default branch May 24, 2024 09:00
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.

2 participants