-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add migration for tags * add/update entities and repositories to persist tags * WIP * update sql for finding requests via tags * add basic unit tests for tagged requests * add spec to verify that only requests from most recent results are returned * fix sql * add tags to request dsl methods * add example tests to demo suite * update docs * fix linting errors * change add_tag params
- Loading branch information
1 parent
3e853a2
commit b2dd4fc
Showing
15 changed files
with
365 additions
and
73 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Sequel.migration do | ||
change do | ||
create_table :tags do | ||
column :id, String, primary_key: true, null: false, size: 36 | ||
column :name, String, size: 255, null: false | ||
|
||
index :name, unique: true | ||
end | ||
|
||
create_table :requests_tags do | ||
foreign_key :tags_id, :tags, index: true, type: String, null: false, size: 36, key: [:id] | ||
foreign_key :requests_id, :requests, index: true, type: Integer, null: false, key: [:index] | ||
|
||
index [:tags_id, :requests_id], unique: true | ||
index [:requests_id, :tags_id], unique: true | ||
end | ||
end | ||
end |
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
Oops, something went wrong.