Skip to content

Conversation

@NillasKA
Copy link
Contributor

@NillasKA NillasKA commented Sep 2, 2025

Description

This PR Makes it so the SignProviders HasPendingChangesSignProvider & HasScheduleSignProvider applies its signs to the given variants of the the document. The purpose of this, is to make it easier to tell which variant of the document has theese specifications.

A part of this PR is also moving some of the code, to the respective factories, due to it being more logical to handle these variant changes within the factories where the variants are being created. For future reference, a restructuring of the other sign providers, to also make use of factories could be a good change, since some of them still has their uses applied in controllers.¨
To accompany this, i have also reinstated some constructors that has been marked as obsolete - As far as i could tell, these have not been included in any releases and therefore it shouldn't be deemed as a breaking change.

The HasScheduleSignProvider was tougher than i expected, to apply these signs to its variants, therefore the code is a slight bit more complex and includes 2 DB Calls, please take a solid look at that, and suggest any refactoring if applicable.

Have a great day 😄

@NillasKA NillasKA marked this pull request as ready for review September 2, 2025 13:19
@NillasKA NillasKA requested a review from Zeegaan September 4, 2025 10:23
Copy link
Member

@Zeegaan Zeegaan left a comment

Choose a reason for hiding this comment

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

Looks good, works great 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants