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

additional safety checks for config version #716

Merged
merged 3 commits into from Jun 26, 2023

Conversation

artoonie
Copy link
Collaborator

closes #712

see commentary in Issue

@artoonie artoonie force-pushed the feature/issue-712_config-versions branch from 3c9b6bd to 801d33c Compare June 23, 2023 15:49
Comment on lines 65 to 67
// In practice, this should never be thrown because we should have checked the version
// while loading the config, and the version number can never change after a load+migration.
// Still, as a safety check, we'll throw here.
Copy link
Contributor

Choose a reason for hiding this comment

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

I now understand why this was here... the blocking version check doesn't actually happen when loading the config, it happens when triggering validation. This check was designed specifically to warn CLI users... I just completely overlooked the comment at the top that says exactly this. I think we should basically revert this PR, but I'm going to tweak it a little bit just to avoid this confusion again in the future.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah, I see -- the CLI cannot migrate the config, but the GUI does, because the GUI gives you an immediate representation of what it looks like migrated. This comment makes more sense now.

@artoonie artoonie merged commit 2973304 into develop Jun 26, 2023
1 check passed
@artoonie artoonie deleted the feature/issue-712_config-versions branch June 26, 2023 20:34
artoonie added a commit that referenced this pull request Jun 26, 2023
* additional safety checks for config version

* Partial PR reversion and comments for clarity.

---------

Co-authored-by: HEdingfield <hylton@groupagree.com>
artoonie added a commit that referenced this pull request Jun 27, 2023
* additional safety checks for config version

* Partial PR reversion and comments for clarity.

---------

Co-authored-by: HEdingfield <hylton@groupagree.com>
artoonie added a commit that referenced this pull request Jun 28, 2023
* WIP: editable tables

* support aliases and fix provider

* clean-up

* swap transfer/vote% column, and by by fix (#720)

* additional safety checks for config version (#716)

* additional safety checks for config version

* Partial PR reversion and comments for clarity.

---------

Co-authored-by: HEdingfield <hylton@groupagree.com>

* lock UI while edit in progress

* Use pop-up for inline alias editing

* add GUI label back for Provider

* PR comments, linting

* also disable all buttons

* don't eat semicolons

* look up disabled items via css selector

* add instructions

* Helper text tweaks.

* Fix preceding whitespace before aliases

---------

Co-authored-by: HEdingfield <hylton@groupagree.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Block using newer config with older version of RCTab
2 participants