-
-
Notifications
You must be signed in to change notification settings - Fork 525
feat: migrations #1120
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
feat: migrations #1120
Conversation
…#1076) # Pull Request ## Description Please read these instructions and remove unnecessary text. - Try to include a summary of the changes and which issue is fixed. - Also include relevant motivation and context (if applicable). - Make sure to make PR against dev and not the master - List any dependencies that are required for this change. (e.g., packages or other PRs) - Provide a link if there is an issue related to this pull request. e.g., Fixes # (issue) - Please add Reviewers, Assignees, Labels, Projects, and Milestones to the PR. (if applicable) ## Type of change Please put an `x` in the boxes that apply: - [ ] **Bug fix** (non-breaking change which fixes an issue) - [ ] **New feature** (non-breaking change which adds functionality) - [ ] **Breaking change** (fix or feature that would cause existing functionality to not work as expected) - [x] **Documentation update** (non-breaking change; modified files are limited to the documentations) - [ ] **Technical debt** (a code change that does not fix a bug or add a feature but makes something clearer for devs) - [ ] **Other** (provide details below) ## Checklist Please put an `x` in the boxes that apply: - [x] I have read the [CONTRIBUTING](https://github.com/HyDE-Project/HyDE/blob/master/CONTRIBUTING.md) document. - [x] My code follows the code style of this project. - [x] My commit message follows the [commit guidelines](https://github.com/HyDE-Project/HyDE/blob/master/COMMIT_MESSAGE_GUIDELINES.md). - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [ ] I have added a changelog entry. - [ ] I have added necessary comments/documentation to my code. - [ ] I have added tests to cover my changes. - [x] I have tested my code locally and it works as expected. - [x] All new and existing tests passed. ## Screenshots (if appropriate) ## Additional context Add any other context about the problem here.
|
This PR is targeting According to our Quarterly Release Policy:
Required Action:
If this is an emergency fix, please add a comment explaining why it needs to target This is an automated message enforcing our quarterly release workflow. |
|
How will the migration scripts trigger and not trigger? will it always trigger? |
|
This won't solve issues when users do not update for a while. But this should solve issues for anyone religiously following the update so this is Good for now. |
|
Can you point this pr to master please. |
this will always trigger on the updates. will find the latest migration based on the name (sorted by date on descending ) and run it |
|
what if we name migration scripts to HyDE's cal-ver? we can compare the current and new hyde versions with |
can do as long as its sortable. |
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.
Pull Request Overview
This PR implements a migration system for HyDE to handle automated updates and configuration changes during restoration. The migration system will execute the latest migration script found in a new migrations directory when the restore flag is enabled.
- Adds migration system infrastructure with automatic execution during restoration
- Updates Chinese keybinding documentation with improved translations and path corrections
- Adds JSON schema reference to the main configuration file
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| migrations/20250815.sh | Creates example migration script that reloads Hyde shell shaders |
| Source/assets/keybinds/KEYBINDINGS.zh.md | Updates Chinese documentation with better translations and corrected file paths |
| Scripts/install.sh | Integrates migration system into installation script for restore operations |
| Configs/.config/hyde/config.toml | Adds JSON schema reference for configuration validation |
Co-authored-by: Copilot <[email protected]>
|
This PR is targeting According to our Quarterly Release Policy:
Required Action:
If this is an emergency fix, please add a comment explaining why it needs to target This is an automated message enforcing our quarterly release workflow. |
|
This PR is targeting According to our Quarterly Release Policy:
Required Action:
If this is an emergency fix, please add a comment explaining why it needs to target This is an automated message enforcing our quarterly release workflow. |
|
LGTM |
|
This PR is targeting According to our Quarterly Release Policy:
Required Action:
If this is an emergency fix, please add a comment explaining why it needs to target This is an automated message enforcing our quarterly release workflow. |

Pull Request
Description
as discussed on the discussion #1119
Please read these instructions and remove unnecessary text.
Type of change
Please put an
xin the boxes that apply:Checklist
Please put an
xin the boxes that apply:Screenshots
(if appropriate)
Additional context
Add any other context about the problem here.