-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
Bank Org Request Export - Include Custom Units #4608
Merged
Merged
Changes from 14 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
af2cfee
Modify exporter to use real item_requests
awwaiid 3531d9b
Merge remote-tracking branch 'origin/main' into request-export-units
awwaiid d0cf9a5
Include the units of the requested items
awwaiid 64970ec
Rename to more correct item_requests
awwaiid 9786bec
Reorganize and stupify spec
awwaiid 5157b4f
Use dash to separate unit
awwaiid c99c4d3
Re-arrange factory create a bit
awwaiid 555daf3
Merge remote-tracking branch 'origin/main' into request-export-units
awwaiid 2e82bbd
Create item_requests for realistic mock data
awwaiid ae5551b
Only add new export units when custom-units feature is enabled
awwaiid d58a312
Handle the case where the item custom-unit was deleted later
awwaiid 09bc851
Fix request export for default-unit
awwaiid 9424cba
Merge remote-tracking branch 'origin/main' into request-export-units
awwaiid 7815c0a
Use empty string for request unit in spec
awwaiid be6b4c0
Merge branch 'main' into request-export-units
awwaiid 84224ba
Merge remote-tracking branch 'origin/main' into request-export-units
awwaiid 6b5f2bf
Extract common name_with_unit for request items
awwaiid 57b00bd
Use set in item header calc to simplify duplicates
awwaiid fd41178
Remove old commented out code
awwaiid fcc4d91
Specify exact expected values
awwaiid 11433cd
Merge branch 'main' into request-export-units
awwaiid 685fb44
Deal with pluralization conflict and update spec [#4405]
awwaiid ec8c454
Prefetch some data and clarify all_item_requests name [#4405]
awwaiid d643bd3
Change spec to send AR relation
awwaiid 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
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 grab all the request_units at the top rather than doing a separate DB query per item here?
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 followed another alternative of switching to a set and adding rather than re-testing; avoids the extra DB call.
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'm confused - this avoids an extra DB call per item, but you're still doing a DB call per item. I think you might be missing an
includes
somewhere? Or am I reading this wrong?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.
@dorner ok -- I followed some log/bullet.log advice and also watched the logs as I loaded this page. From that I sprinkled a few
.includes
around to pre load things. What do you think?