-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Create credentials namespace and add tests #2831
Merged
BHesseldieck
merged 39 commits into
user-management-backend
from
n8n-2736-credentials-crud-tests
Feb 23, 2022
Merged
Changes from 14 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
e06e147
:test_tube: Fix failing test
ivov 013aab0
:blue_book: Improve `createAgent` signature
ivov 2af92ab
:truck: Fix `LoggerProxy` import
ivov 491ac27
:sparkles: Create credentials endpoints namespace
ivov 011ed90
:test_tube: Set up initial tests
ivov 8ca92f4
:zap: Add validation to model
ivov a21ff8c
:zap: Adjust validation
ivov 217c149
:test_tube: Add test
ivov e73afad
:truck: Sort creds endpoints
ivov 4a42471
:pencil2: Plan out pending tests
ivov 73ae460
:test_tube: Add deletion tests
ivov 2624e11
:test_tube: Add patch tests
ivov 937de2f
:test_tube: Add get cred tests
ivov 1f5af23
:truck: Hoist import
ivov ea1b429
:twisted_rightwards_arrows: Merge parent branch
ivov 4786f67
:pencil2: Make test descriptions consistent
ivov bac584f
:pencil2: Adjust description
ivov 4012671
:test_tube: Add missing test
ivov 69c587a
:pencil2: Make get descriptions consistent
ivov 06aeb49
:rewind: Undo line break
ivov b002eed
:zap: Refactor to simplify `saveCredential`
ivov eac3b42
:test_tube: Add non-owned tests for owner
ivov a0b43c8
:pencil2: Improve naming
ivov 7dc103e
:pencil2: Add clarifying comments
ivov 80162a3
:truck: Improve imports
ivov 390cdb8
:zap: Initialize config file
ivov 7682701
:fire: Remove unneeded import
ivov 24e2aee
:truck: Rename dir
ivov 7aa60c9
:zap: Adjust deletion call
ivov 2821265
:zap: Adjust error code
ivov f096c19
:pencil2: Touch up comment
ivov 5e3e023
:zap: Optimize fetching with `@RelationId`
ivov e99c60f
:test_tube: Add expectations
ivov 13c39f8
:zap: Simplify mock calls
ivov 8a8fe69
:blue_book: Set deep readonly to object constants
ivov b405c33
:fire: Remove unused param and encryption key
ivov 5f1f00b
:zap: Add more `@RelationId` calls in models
ivov ab70b94
:twisted_rightwards_arrows: Merge parent branch
ivov 3104fc5
:rewind: Restore
ivov 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
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.
would prefer sth like this:
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.
Renamed as suggested, but please consider:
credentials.ts
files that match on file search - even searching forcredentials name
(file plus part of new dirname) actually brings upCredentialsSelectModal.vue
first. On the other hand, using a dotted suffix like.endpoints
brings up the file already oncredentials.e
, followed also by the relevant testscredentials.endpoints.test.ts
, with all other similar but irrelevantcredentials
files getting filtered out. We could use.api
instead of.endpoints
to keep it concise, ideally mirrored in the tests file.*
imports, TS types grouped in namespaces, etc.) because inServer.ts
we are not referencing them as<namespace>.<entity>
. These endpoints are not namespaced, just split off into a separate file.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.
Also let's move UM endpoints to this dir as well? In this PR or in another.