-
Notifications
You must be signed in to change notification settings - Fork 3
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
[CONFIGURATOR] Versioning + UI #1013
Conversation
8e125da
to
79ee94e
Compare
- Reorganize schemas and tables constraints (version_id) - Add Version associations (and assoc changesets) - Allow new config version creation in UI (update forms)
b6f5d9e
to
2f70766
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work Nico!! Although the PR is big, it adds a lot of things that were needed for the configurator.
Regarding the UX for the version creation and the problem it has now, probably we should make the user create the things in the order we want to, for example, if Characters depends on Skills, lets set the skills first then the characters later, so we can use the updated skills from these version and not the previous one 😄. We can address it in another PR
|> cast_assoc(:consumable_items) | ||
|> cast_assoc(:skills, with: &Skill.assoc_changeset/2) | ||
|> cast_assoc(:map_configurations, with: &MapConfiguration.assoc_changeset/2) | ||
|> cast_assoc(:game_configuration, with: &GameConfiguration.assoc_changeset/2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we discussed at the office, we'll address this in the future.
We might want to "soft-delete" a version and re-use that name. Also, the feature is quite lax for now, we can modify everything and move to any version.
After we use it, we'll know better how to make this feature more secure and restrictive in a useful way to our needs.
Motivation
This is part of #1002
Closes #1029
Closes #1030
Summary of changes
How to test it?
To create a new version:
What to check:
Known issues and next steps:
#1028
Checklist