-
-
Notifications
You must be signed in to change notification settings - Fork 729
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
Add external billing id on enterprises #12980
Merged
RachL
merged 24 commits into
openfoodfoundation:master
from
pacodelaluna:add-external-billing-id-on-enterprises
Jan 13, 2025
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
772f1f8
Add external_billing_id field on enterprises table
pacodelaluna 14334b0
Add new field on enterprise admin form
pacodelaluna 30dfae7
Deal with translations
pacodelaluna 6030d7e
Handle the async action for entreprises sells field changes
pacodelaluna 57c237c
Move admin_only tab upper
pacodelaluna e378818
Add unit tests for admin entreprises changes
pacodelaluna 6ae3c8b
Add external_billing_id field on revenues_by_hub report
pacodelaluna 657df9e
Repair field placeholder translation
pacodelaluna 3c7c02d
Repair specs
pacodelaluna 9dc3649
Put back permalink fields on primary details panel
pacodelaluna d6faa23
Fix spec
pacodelaluna cd38e02
Add spinner
pacodelaluna 0f77d1b
Use params value only if present
pacodelaluna 0b0b6a0
Do explicit save in specs when switching tabs
pacodelaluna f9f5d0e
Revert "Do explicit save in specs when switching tabs"
pacodelaluna 9cd3bbf
Revert "Use params value only if present"
pacodelaluna 1e3f866
Revert "Add spinner"
pacodelaluna 983e3e7
Revert "Fix spec"
pacodelaluna a007fda
Revert "Put back permalink fields on primary details panel"
pacodelaluna 3ef5b41
Remove Admin Only tab logic
pacodelaluna e946b50
Isolate into an Admin Only section
pacodelaluna 9c153c6
Improve specs
pacodelaluna 96c7c82
Fix specs
pacodelaluna 244e052
Re-instate check for external_billing_id
dacook 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
5 changes: 5 additions & 0 deletions
5
db/migrate/20241113185651_add_external_billing_id_on_enterprises.rb
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,5 @@ | ||
class AddExternalBillingIdOnEnterprises < ActiveRecord::Migration[7.0] | ||
def change | ||
add_column :enterprises, :external_billing_id, :string, limit: 128 | ||
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.
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 put the limit at 128 chars as it seems enough, but it can be of course changed in case.
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.
Makes sense, I agree that there shouldn't be more than 128 chars in this field.
Scanning schema.rb, I see that most fields are set to 255 🤷 Probably it doesn't matter.