This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
Adds WIT parameter in TrackerQuery payload #2360
Merged
DhritiShikhar
merged 26 commits into
fabric8-services:master
from
DhritiShikhar:tq-wit-1
Dec 21, 2018
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
f0fc73c
Adds WIT to TQ payload
DhritiShikhar 65b3643
Merge remote-tracking branch 'upstream/master' into tq-wit-1
DhritiShikhar e4f054c
adds check for WIT; adds tests
DhritiShikhar 21ee0b5
adds require.NoError
DhritiShikhar bba6209
removes duplicate checks for TrackerQuery update action
DhritiShikhar 0524fee
replaces `rest` with `s`
DhritiShikhar 5c24211
uses app.NewSpaceRelation(....)
DhritiShikhar 4e28161
changes `baseType` to `workItemType` in TrackerQuery payload
DhritiShikhar 7eafcf3
removes unnecessary spacetemplate creation
DhritiShikhar 936cfc9
uses app.NewSpaceRelation(....) for space
DhritiShikhar 68498a6
Adds work_item_type_id to existing tracker_queries; Adds tests;
DhritiShikhar 3646533
Merge remote-tracking branch 'upstream/master' into tq-wit-1
DhritiShikhar 72bc5c5
Adds struct tags
DhritiShikhar 6648376
changes name of a function
DhritiShikhar 071fe92
removes t:=s.T() line controller level test
DhritiShikhar 97f2247
deletes old data from tracker_queries; adds wit column in tracker_que…
DhritiShikhar 6f48605
removes unnecessary code from migration black box tests
DhritiShikhar e358263
Merge branch 'master' into tq-wit-1
DhritiShikhar 6ddb69d
renames function
DhritiShikhar 92a0e2c
Merge remote-tracking branch 'origin/tq-wit-1' into tq-wit-1
DhritiShikhar f5c9755
Merge remote-tracking branch 'upstream/master' into tq-wit-1
DhritiShikhar fc1a8ba
Merge branch 'master' into tq-wit-1
DhritiShikhar 1b36616
changes assert to require
DhritiShikhar 09a0e75
adds return values for tests
DhritiShikhar a59a40b
puts tests under one function
DhritiShikhar 9fd13d7
Merge remote-tracking branch 'upstream/master' into tq-wit-1
DhritiShikhar 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
DELETE FROM tracker_queries; -- tracker_queries was not fully supported and not in working condition before this | ||
ALTER TABLE tracker_queries ADD COLUMN work_item_type_id uuid not null REFERENCES work_item_types(id) ON DELETE CASCADE; |
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
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.
I wonder whether the UUID should be validated.
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.
@baijum are you talking about a check if the
id
contains string or uuid?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.
Check whether the value of
*ctx.Payload.Data.ID
is real UUID (It's not a string type)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.
I mean what if the value is some random string. It will reach the database layer and fail. How about failing early?
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.
@baijum At design level itself its specified that the value should be a UUID (https://github.com/fabric8-services/fabric8-wit/blob/master/design/tracker_queries.go#L13)