Skip to content

TAMU Sprint18 Staging - #176

Merged
kaladay merged 5 commits into
masterfrom
sprint18-staging
Oct 28, 2026
Merged

kaladay merged 5 commits into
masterfrom
sprint18-staging

Conversation

@kaladay

@kaladay kaladay commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What's Changed

  • MODWRKFLOW-84: Upgrade to folio-spring-support v10.0.1.
  • MODWRKFLOW-85: Provide common/sane defaults during pre-process to act as appropriate initialization.

kaladay and others added 5 commits October 21, 2026 13:06
… as appropriate initialization.

Remove all of the `@NotNull` annotations.
We shouldn't have the **JSON** handler be more opinionated.
We can better use **Java** logic to parse and handle the situation.
This better allows for providing defaults.
This reduces some of the problems with **Jackson's** highly opinionated, fickle, and very subject to breaking change designs.

Add `@ColumnDefault` to provide the default where possible.
In any case where there is a `columnDefinition` is use, the `@ColumnDefault` cannot be used.
Instead, directly specify the default within the `columnDefinition`.
Use constant variables where possible, however, many cannot be used because **Java** complains that they are too dynamic to be used.
In those cases, unfortunately, static values must be hard coded into the string itself.
This is less maintainable, but the situation is forced by **Java's** inflexible design in this case.
This can be looked at in the future where we could redefine some global statics or other behavioral change to reduce this problem.
Such changes are largely out of scope for this issue.

The `ScriptTask` is udpated to use a `SCRIPT_FORMAT_DEFAULT` at a package level so that the unit test can better utilize this.
The whole `scriptFormat` vs extension logic should be revisited in the future.
We really shouldn't have these extra steps and fields to swap between.

Many of the text fields should instead be `TEXT` rather than `VARCHAR`.
Under the hood, `VARCHAR` is essentially a `TEXT` with some restrictions.
However, `TEXT` operates far better and cleaner than `VARCHAR`.
Only in places where it is easy and obvious, change `VARCHAR` (the implicit default) explicitly to `TEXT`.
This should prevent problems where much of the text data is not a safe or sane limit.

Get rid of any `@Size` limitations that clearly should not exist.
Any that is questionable or uncertain is left as-is.

Set `nullable` to `falee` where possible that things have defaults being added.
There are some fields that have comments noting that they cannot have this set to `false` when it otherwise should.
These will have to be re-reviewed at a later date to confirm/deny if the problem they are working around is resolved or not.

The default for `includeAttachment` is not a boolean but instead a string of either `true` or `false`.
This is because of the use of **Freemarker** on that field.
Fixing this to utilize **Camunda's/Operaton's** own expression handler would require too much out of scope changes to handle here.
Explicitly add a comment where needed to document this behavior.

The `Workflow` is no longer completely missing the initialization of `Setup`.

Update unit tests accordingly.

For unit tests that happened to be updated, change the arguments stream logic to the more recent practices.
The new practices have shown to have less odd problems.
We should migrate to the new approach over time or via a separate issue when we have the chance (outside of this issue).
Add class level static constants to make changes easier and more maintainable.
This will allow for improving the unit tests.

Only update the unit tests that needed to be updated to pass the current coverage requirements.
MODWRKFLOW-85: Provide common/sane defaults during pre-process to act as appropriate initialization.
MODWRKFLOW-84: Upgrade folio-spring-supoort to v10.0.1.
@kaladay
kaladay requested a review from a team October 26, 2026 14:59
@sonarqubecloud

Copy link
Copy Markdown

@kaladay
kaladay merged commit f7648f4 into master Oct 28, 2026
16 checks passed
@kaladay
kaladay deleted the sprint18-staging branch October 28, 2026 14:48
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.

3 participants