-
Notifications
You must be signed in to change notification settings - Fork 2k
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(Git Projects): Insomnia files can be anywhere inside the repository #8432
Open
gatzjames
wants to merge
20
commits into
Kong:develop
Choose a base branch
from
gatzjames:feat/git-project-insomnia-file-heuristics
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
21e5f41
heuristics
gatzjames 3179067
save
gatzjames 032970f
allow for using insomnia files from anywhere in the repo
gatzjames 025cd07
save
gatzjames 2ca7b0c
fix ts errors and rm unused modal
gatzjames 4ef4481
cleanup insane try catch
gatzjames 2ca4a81
cleanup logs
gatzjames d7c7845
cleanup logs
gatzjames f52826a
fix ts
gatzjames d651a7d
Update packages/insomnia/src/main/git-service.ts
gatzjames d64ec72
Allow any filename for insomnia files
gatzjames 8ceca0b
add filename input field when creating a new workspace
gatzjames 3830745
add validation for new workspace filenames
gatzjames a3bf80f
validation and setting to rename the fileName of a workspace
gatzjames 2ea83cc
auto name files on import and migration
gatzjames c563d71
remove default git repository on local vault
gatzjames 35f4669
remove legacy git sync copy on project modal
gatzjames 639ffdf
update test and handle diff status for legacy git
gatzjames 6d5d4ea
rename fetch to fetch and checkout
gatzjames d67ef9a
read git author from db
gatzjames 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
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -30,6 +30,7 @@ | |
repoId: '', | ||
directory: GIT_CLONE_DIR, | ||
fs: fsClient, | ||
legacyDiff: true, | ||
}); | ||
await GitVCS.setAuthor('Karen Brown', '[email protected]'); | ||
|
||
|
@@ -109,6 +110,7 @@ | |
repoId: '', | ||
directory: GIT_CLONE_DIR, | ||
fs: fsClient, | ||
legacyDiff: true, | ||
}); | ||
await GitVCS.setAuthor('Karen Brown', '[email protected]'); | ||
expect(await GitVCS.log()).toEqual([]); | ||
|
@@ -126,6 +128,7 @@ | |
repoId: '', | ||
directory: GIT_CLONE_DIR, | ||
fs: fsClient, | ||
legacyDiff: true, | ||
}); | ||
|
||
await GitVCS.setAuthor('Karen Brown', '[email protected]'); | ||
|
@@ -170,7 +173,7 @@ | |
}, | ||
]); | ||
|
||
expect(await GitVCS.log()).toEqual([ | ||
Check failure on line 176 in packages/insomnia/src/sync/git/__tests__/git-vcs.test.ts
|
||
{ | ||
commit: { | ||
author: { | ||
|
@@ -212,6 +215,7 @@ | |
repoId: '', | ||
directory: GIT_CLONE_DIR, | ||
fs: fsClient, | ||
legacyDiff: true, | ||
}); | ||
await GitVCS.setAuthor('Karen Brown', '[email protected]'); | ||
const status = await GitVCS.status(); | ||
|
@@ -260,6 +264,7 @@ | |
repoId: '', | ||
directory: GIT_CLONE_DIR, | ||
fs: fsClient, | ||
legacyDiff: true, | ||
}); | ||
// Commit | ||
await GitVCS.setAuthor('Karen Brown', '[email protected]'); | ||
|
@@ -318,6 +323,7 @@ | |
repoId: '', | ||
directory: GIT_CLONE_DIR, | ||
fs: fsClient, | ||
legacyDiff: true, | ||
}); | ||
// Write to all files | ||
await Promise.all(files.map(f => fsClient.promises.writeFile(f, originalContent))); | ||
|
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.
Check warning
Code scanning / Semgrep OSS
Semgrep Finding: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal Warning