Skip to content

Conversation

@timoschwarzer
Copy link
Contributor

I made a mistake in #17 where I made Sync jobs sync child instead of parent elements, then you @johnnynotsolucky correctly tried to fix that in another place causing the resulting code to sync parent and child elements, which then would also sync their child elements, resulting in a huge number of unnecessary Sync jobs to spawn when saving an entry that is inside a dependency chain.

Apart from that, this PR adds a QoL feature to define a name function that returns the name of a source for a given source handle. This is completely optional and only used for job descriptions. E.g. it now shows Sync 'Element title' (index name) instead of Sync 12345678 in index name. That was helpful for debugging the above problem and I thought it could be useful in the future.

Copy link
Member

@johnnynotsolucky johnnynotsolucky left a comment

Choose a reason for hiding this comment

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

@timoschwarzer great work figuring this out!

Changes look good to me. I had one comment on the Source::get() function, and I think this is ready.

@johnnynotsolucky johnnynotsolucky merged commit ce6ad72 into FosterCommerce:main Nov 10, 2025
3 checks passed
@johnnynotsolucky
Copy link
Member

I haven't forgotten to release this and #17! I'm hoping to get to it soon.

@timoschwarzer
Copy link
Contributor Author

No worries! I have pinned my composer.json to my fork for the time being 😄

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.

2 participants