-
Notifications
You must be signed in to change notification settings - Fork 1
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
Structured data for store/organisation #6
base: main
Are you sure you want to change the base?
Structured data for store/organisation #6
Conversation
While working on the in-memory updater in solidusio#5872, we found the need to change how item totals were being calculated, so that we could mark adjustments for destruction without actually destroying them, while still keeping tax adjustments intact. This change is completely backwards-compatible with the current OrderUpdater, so to reduce the scope of our PR, we wanted to make this change separately. Since the OrderUpdater is already very large, this helps reduce its responsibilities and makes it easier to test this behaviour. We don't see it as necessary to make this a configurable class, but this change leaves that option open in the future. Co-authored-by: Adam Mueller <[email protected]> Co-authored-by: Alistair Norman <[email protected]> Co-authored-by: Chris Todorov <[email protected]> Co-authored-by: Harmony Bouvier <[email protected]> Co-authored-by: Sofia Besenski <[email protected]> Co-authored-by: benjamin wil <[email protected]>
I don't know if there's all that much customizing people will perform on this class, but it's easy enough to make it configurable just in case.
@rahulsingh321 translations for labels are entirely missing. |
Todos: |
@kennyadsl we are unsure if using addresses or just make columns here. Specs by google are following:
|
3a5dad4
to
0ad8199
Compare
@rahulsingh321 |
@rahulsingh321 wait for PR description by me before making pr |
@rahulsingh321 please update the screenshot |
The `address1` container incorrectly had the same identifier as the "Check stock on transfer" input checkbox. This fixes the typo, so this container can be referenced in Deface overrides, etc. Co-authored-by: Benjamin Willems <[email protected]>
- Introduced FriendlyId to the Taxon model to enable slug history tracking. - Replaced before_create and before_update callbacks with a before_save callback for better slug management. - Implemented a custom should_generate_new_friendly_id? method to control when a new slug is generated, specifically when the permalink changes. - Added a custom normalize_friendly_id method to ensure proper slug formatting for nested taxons. - Included a test to verify that the history of permalinks is correctly stored when a taxon's permalink is updated, ensuring both initial and updated slugs are retained. This change enhances the flexibility and reliability of handling slugs for taxons.
…history-to-taxon Add permalink history for taxon on friendly-id
bb18ebd
to
c31ef6d
Compare
…k-location-form-partial Fix field container identifier on admin stock location
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.
Generally it looks good, some minor things:
- try to align the section headers with what they do in the new admin
- try to be more consistent with naming throughout a PR
Rest looks good, form is well structured, tests are there. I don't see why this wouldn't be ok. @shahmayur001 needs to remove the wrongly placed commits from here.
core/db/migrate/20250202173007_add_store_attributes_to_spree_stores.rb
Outdated
Show resolved
Hide resolved
2567caf
to
7cc9c0a
Compare
…em-total-updates Refactor Line Item Total Calculations
7cc9c0a
to
2bdf3fd
Compare
2bdf3fd
to
5221825
Compare
Store form UI:
![Screenshot from 2025-02-03 23-31-47](https://private-user-images.githubusercontent.com/22743359/409290489-67c7943a-8831-4203-8e22-f8eea2efee11.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0Mjg4ODIsIm5iZiI6MTczOTQyODU4MiwicGF0aCI6Ii8yMjc0MzM1OS80MDkyOTA0ODktNjdjNzk0M2EtODgzMS00MjAzLThlMjItZjhlZWEyZWZlZTExLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA2MzYyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThiMDhjZmZiOGNiNjZlODA0MWZkZmRkYWY5NDc0NzRlZjcxNTZjNDVkMjRjODc2ZWE2NDAxOTNmN2I5ZjZkNDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.MuQ9CXh7A8cz9C7il9Rqs79YfryznBStpOhDjoZXaXk)