-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
4175 add request type flag #4271
Closed
nathangthomas
wants to merge
40
commits into
rubyforgood:main
from
unabridged:4175-add-request-type-flag
Closed
Changes from 5 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
35c4e27
Adds type enum to request model.
nathangthomas d1911fe
Adds request type enum to request model.
nathangthomas 3007e64
Adds request_type to request.
nathangthomas 7ae36b4
Adds request_type to request.
nathangthomas a2c79df
Passes request_type to FamilyRequestCreateService.new
nathangthomas 7e17565
Passes request_type to FamilyRequestCreateService.new
nathangthomas 9b5977e
Passes request_type to RequestCreateService.new
nathangthomas 854cd39
Passes request_type to Request.new.
nathangthomas 8435518
Adds hidden field in order to pass request_type param on submit.
nathangthomas 45a9495
Adds request type flag to index and show pages as well as the request…
nathangthomas 4791021
Adds by_request_type scope for filtering by request type.
nathangthomas 3866a8f
Adds request type flag to index and show pages as well as the request…
nathangthomas 8a775ec
Adds by_request_type filter.
nathangthomas a037b1c
Updates flag names and removes flag styles based on feedback from rub…
nathangthomas 26afeb4
Adds test for request_type enum.
nathangthomas 5c2997b
Removes unnecessary line.
nathangthomas 0cd4451
Adds Type to expected_headers.
nathangthomas 94a1be4
Adds request_type traits to request factory.
nathangthomas 42f1f84
Adds request_type to family_request_create_service_spec args.
nathangthomas c6e45c8
Adds request_type to args.
nathangthomas 0cfddca
Merge branch 'main' into 4175-add-request-type-flag
nathangthomas 67e9d71
Pass request_type directly.
nathangthomas d8e9806
Remove request_type partial and enter text directly into reqest_row
nathangthomas 1e19d30
Revert changes to database.yml
nathangthomas 43f7365
Revert changes to request_spec.rb
nathangthomas c1792ac
Remove request_type
nathangthomas 6441532
Remove hidden request_type fields.
nathangthomas a27b4e6
Fix merge conflicts / merge remote.
nathangthomas d53785c
Change request_type data_type to string, replace request_type string …
nathangthomas 56b7c04
Merge branch 'main' of github.com:unabridged/human-essentials into 41…
nathangthomas 36cb9b2
Merge branch 'main' into 4175-add-request-type-flag
nathangthomas 41a0429
Remove request_type from tests
nathangthomas c0af65c
Merge branch '4175-add-request-type-flag' of github.com:unabridged/hu…
nathangthomas f46736e
Add request_type_label method
nathangthomas 656e712
Undo changes to versions
nathangthomas 3a0e841
Add request_type_label method
nathangthomas 389e6d9
Add request_type to initialize
nathangthomas c1acb98
Merge branch 'main' into 4175-add-request-type-flag
nathangthomas 15ecc79
Fix request_type bug
nathangthomas 9c0572b
Merge branch '4175-add-request-type-flag' of github.com:unabridged/hu…
nathangthomas 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class AddTypeToRequests < ActiveRecord::Migration[7.0] | ||
def change | ||
add_column :requests, :request_type, :integer | ||
add_column :requests, :request_type, :string | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
# | ||
# It's strongly recommended that you check this file into your version control system. | ||
|
||
ActiveRecord::Schema[7.0].define(version: 2024_03_15_190152) do | ||
ActiveRecord::Schema[7.0].define(version: 2024_04_19_225137) do | ||
# These are extensions that must be enabled in order to support this database | ||
enable_extension "plpgsql" | ||
|
||
|
@@ -737,7 +737,7 @@ | |
t.datetime "discarded_at", precision: nil | ||
t.text "discard_reason" | ||
t.integer "partner_user_id" | ||
t.integer "request_type" | ||
t.string "request_type" | ||
t.index ["discarded_at"], name: "index_requests_on_discarded_at" | ||
t.index ["distribution_id"], name: "index_requests_on_distribution_id", unique: true | ||
t.index ["organization_id"], name: "index_requests_on_organization_id" | ||
|
@@ -849,7 +849,8 @@ | |
end | ||
|
||
create_table "versions", force: :cascade do |t| | ||
t.string "item_type", null: false | ||
t.string "item_type" | ||
t.string "{:null=>false}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this is supposed to be here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was automatically changed when I ran the migrations last. I reverted it. |
||
t.bigint "item_id", null: false | ||
t.string "event", null: false | ||
t.string "whodunnit" | ||
|
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.
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.
Can we extract this into a method on
request
? It's a bit obscure. If you call it something likerequest_type_label
with a comment it'd be more obvious.