-
Notifications
You must be signed in to change notification settings - Fork 2.8k
console: allow configuring session_argument for custom functions (close #4499) #4922
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
beerose
merged 20 commits into
hasura:master
from
soorajshankar:feature/session_argument-as-sql-function-argument-#4499
Jun 11, 2020
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
4f6f9b8
use session var arg as SQL function arg #4499
soorajshankar 9017a8d
Merge branch 'master' of https://github.com/hasura/graphql-engine
soorajshankar 5cb419c
functions >session argument tests #4499
soorajshankar 054c31a
changelog #4499
soorajshankar 33b3343
Merge branch 'master' into feature/session_argument-as-sql-function-a…
soorajshankar 798b4bd
Merge branch 'master' of https://github.com/hasura/graphql-engine int…
soorajshankar 8bde531
Merge branch 'feature/session_argument-as-sql-function-argument-#4499…
soorajshankar 63a2179
review comments v1
soorajshankar 2bb4a5a
session arguments
soorajshankar fe37b34
Session Arguments
soorajshankar f2d97e7
better function naming
soorajshankar 85f5a74
more test coverage
soorajshankar 18fca1a
UI changes
soorajshankar a3af353
Merge branch 'master' of https://github.com/hasura/graphql-engine int…
soorajshankar da9260f
lint cleanup
soorajshankar 5ba23f8
Merge branch 'master' into feature/session_argument-as-sql-function-a…
f6a3404
Update CHANGELOG.md
88bf6b6
down migration, untrack function with version 2
soorajshankar 19e1ffa
Merge branch 'master' of https://github.com/hasura/graphql-engine int…
soorajshankar 392f789
Merge branch 'master' into feature/session_argument-as-sql-function-a…
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 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1350,7 +1350,7 @@ code { | |
|
|
||
| .tooltip { | ||
| cursor: pointer; | ||
| color: #4D4D4D; | ||
| color: #4d4d4d; | ||
| } | ||
|
|
||
| .hiddenMoreWidth { | ||
|
|
||
34 changes: 34 additions & 0 deletions
34
console/src/components/Services/Data/Function/Modify/EditorInput.tsx
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,34 @@ | ||
| import React from 'react'; | ||
| import styles from './ModifyCustomFunction.scss'; | ||
|
|
||
| export interface EditorInputProps { | ||
| value: string | number; | ||
| label: string | number; | ||
| placeholder?: string; | ||
| testID?: string; | ||
| onChange: (e: React.ChangeEvent<HTMLInputElement>) => void; | ||
| } | ||
|
|
||
| const EditorInput: React.FC<EditorInputProps> = ({ | ||
| value, | ||
| onChange, | ||
| label, | ||
| placeholder, | ||
| testID, | ||
| }) => ( | ||
| <div className={`${styles.display_flex} form-group`}> | ||
| <label className="col-xs-4">{label}</label> | ||
| <div className="col-xs-6"> | ||
| <input | ||
| className="input-sm form-control" | ||
| value={value} | ||
| onChange={onChange} | ||
| placeholder={placeholder || ''} | ||
| type="text" | ||
| data-test={`${testID}-edit-sessvar-function-field`} | ||
| /> | ||
| </div> | ||
| </div> | ||
| ); | ||
|
|
||
| export default EditorInput; |
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.
Uh oh!
There was an error while loading. Please reload this page.