Skip to content
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

Added reverse-chronological ordering to outbox items #34

Conversation

mike182uk
Copy link
Member

@mike182uk mike182uk commented Aug 29, 2024

refs AP-371

Added reverse-chronological ordering to outbox items by reversing the order of the items in the outbox before dispatching them. This could be improved by comparing the published property on the object associated with the outbox item, but for now this is good enough.

docker-compose.yml Outdated Show resolved Hide resolved
features/outbox.feature Outdated Show resolved Hide resolved
refs [AP-371](https://linear.app/tryghost/issue/AP-371/outbox-item-ordering-is-not-in-reverse-chronological-order)

Added reverse-chronological ordering to outbox items by reversing the order of
the items in the outbox before dispatching them. This could be improved by
comparing the `published` property on the object associated with the outbox
item, but for now this is a good enough.
@mike182uk mike182uk force-pushed the mike-ap-371-outbox-item-ordering-is-not-in-reverse-chronological-order branch from 46dfee1 to e0b15f2 Compare August 29, 2024 22:09
@mike182uk mike182uk force-pushed the mike-ap-371-outbox-item-ordering-is-not-in-reverse-chronological-order branch from 68ab2d2 to 07bf515 Compare August 30, 2024 07:58
@mike182uk mike182uk force-pushed the mike-ap-371-outbox-item-ordering-is-not-in-reverse-chronological-order branch from 07bf515 to 2510378 Compare August 30, 2024 08:00
@@ -1,14 +0,0 @@
Feature: Outbox
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't working as expected and I wasn't keen on the implementation of the steps. I've decided to cover this functionality in the added unit test as its clearer whats happening / quicker to execute

@mike182uk mike182uk force-pushed the mike-ap-371-outbox-item-ordering-is-not-in-reverse-chronological-order branch from 2510378 to 1cc3629 Compare August 30, 2024 08:04
@mike182uk mike182uk marked this pull request as ready for review August 30, 2024 08:05
@mike182uk mike182uk force-pushed the mike-ap-371-outbox-item-ordering-is-not-in-reverse-chronological-order branch from 1cc3629 to 81bf242 Compare August 30, 2024 08:11
@mike182uk mike182uk force-pushed the mike-ap-371-outbox-item-ordering-is-not-in-reverse-chronological-order branch from 81bf242 to c4f0ba4 Compare August 30, 2024 08:14
@mike182uk mike182uk force-pushed the mike-ap-371-outbox-item-ordering-is-not-in-reverse-chronological-order branch from c4f0ba4 to e32481d Compare August 30, 2024 08:14
@mike182uk mike182uk merged commit c8dc4ca into main Aug 30, 2024
1 check passed
@mike182uk mike182uk deleted the mike-ap-371-outbox-item-ordering-is-not-in-reverse-chronological-order branch August 30, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant