-
Notifications
You must be signed in to change notification settings - Fork 0
feat(auto-scaling): fix autoscaling and add manual deploy #17
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
295178d
feat(deploy): support specific commit deployments
Lftobs 210f9df
Merge branch 'feat/auto-scaling' of github.com:Lftobs/dequel into fea…
Lftobs 594916d
Merge branch 'dev' into feat/auto-scaling
Lftobs ef3fd36
feat(api): add drizzle migrations and deploy UI
Lftobs ffb2557
feat(deployments): add ClearCacheToggle UI
Lftobs 765203a
Merge branch 'feat/auto-scaling' of github.com:Lftobs/dequel into fea…
Lftobs 5c49ed9
fix: robust migration and UI log tweaks
Lftobs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import { defineConfig } from "drizzle-kit"; | ||
|
|
||
| export default defineConfig({ | ||
| dialect: "sqlite", | ||
| schema: "./src/db/schema.ts", | ||
| out: "./src/db/migrations", | ||
| dbCredentials: { | ||
| url: "./data/dequel.db", | ||
| }, | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,4 +17,4 @@ | |
| "breakpoints": true | ||
| } | ||
| ] | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: Lftobs/dequel
Length of output: 3740
🏁 Script executed:
Repository: Lftobs/dequel
Length of output: 8896
🏁 Script executed:
Repository: Lftobs/dequel
Length of output: 7384
🌐 Web query:
git checkout argument starting with hyphen treated as option argv parse -- commit SHA validation best practice💡 Result:
In Git, the double-hyphen (--) is the standard mechanism to disambiguate arguments [1][2]. It signals the "end of options," instructing Git to interpret all subsequent arguments as pathspecs (files or directories) rather than command-line options, branches, or commit identifiers [1][3][4]. Using -- is essential in the following scenarios: - Files starting with a hyphen: If you have a file named "-filename", running "git checkout -filename" will cause Git to attempt to parse "-f" as an option [1]. The correct syntax is "git checkout -- -filename" [1]. - Disambiguation: If a file name shares the same name as a branch or commit (e.g., you have a file named "master"), using "git checkout master" may switch branches instead of restoring the file [3][5]. "git checkout -- master" explicitly forces Git to treat "master" as a pathspec [3]. Regarding commit SHA validation, while Git natively validates SHAs when you provide them to commands like "git checkout ", there is no built-in "git checkout --validate-sha" flag. Best practice is to rely on Git's internal object database validation: - When you use a partial SHA (a "short SHA"), Git automatically resolves it to a full 40-character object name. If the SHA is ambiguous (matches multiple objects), Git will return an error and suggest the matches. - To programmatically validate a commit SHA before performing an operation, you can use: git rev-parse --verify ^{commit} This command will return the full SHA if valid, or exit with an error code (and print an error to stderr) if the SHA does not exist or does not point to a commit [6]. Note: For modern workflows, it is recommended to use the more specific, explicit commands "git switch" for branch operations and "git restore" for file operations, as they eliminate much of the ambiguity inherent in "git checkout" [7].
Citations:
Validate
commitShabefore enqueuing the deployment. It’s stored as-is and later passed togit checkout, so malformed or option-like input will just make the deploy fail. Reject non-revision values up front, or resolve it withgit rev-parse --verify.🤖 Prompt for AI Agents