Skip to content

Conversation

@kofa73
Copy link
Contributor

@kofa73 kofa73 commented Nov 17, 2025

We don't want to maintain the migration code for the 6 test versions made before darktable 5.4 is officially released with AgX. In order to avoid crashes, we'll simply overwrite old versions with whatever the defaults of the currently latest version of darktable are.
Since this is a special case (sorry for breaking the rules -- I never thought it would get so badly out of hand), there are some repeated, screaming comments regarding the SPECIAL CASE. :-/

Announcement on pixls

In draft for a few days, so users can migrate their images before this gets released with a nightly. This comment will be removed when the PR is taken out of draft.

@kofa73 kofa73 marked this pull request as draft November 17, 2025 18:50
@kofa73
Copy link
Contributor Author

kofa73 commented Nov 17, 2025

I'll check the failures later this week.
update: It's some preprocessor magic. This fails:

#define AGX_VERSION 7

DT_MODULE_INTROSPECTION(AGX_VERSION, dt_iop_agx_params_t)

This works:

#define AGX_VERSION 7

DT_MODULE_INTROSPECTION(7, dt_iop_agx_params_t)

Would that be an acceptable replacement?

*new_version = self->so->get_introspection()->params_version;

@TurboGit
Copy link
Member

@kofa73 : No keep the current code, looking at the diff in GitHub was misleading it is clear now with your comments here. With some comments on the code too it would be just good. Thanks.

@TurboGit
Copy link
Member

Ah indeed missed that, DT_MODULE_INTROSPECTION needs a value as it is a simple parsing with a perl script.

So yes, I would do:

DT_MODULE_INTROSPECTION(7, dt_iop_agx_params_t)

And

*new_version = self->so->version();

And just remove AGX_VERSION as not needed.

@horazont
Copy link
Contributor

horazont commented Nov 18, 2025

Uhhh…

I made a bunch of styles based on v6 over the past weeks. Is there a way to upgrade styles, too?

EDIT: just found the answer ("No") in the pixls thread.

@kofa73
Copy link
Contributor Author

kofa73 commented Nov 18, 2025

Let's wait with merging this until next Monday, so people have time to migrate their images.

@TurboGit TurboGit added this to the 5.4 milestone Nov 19, 2025
@TurboGit TurboGit added the priority: high core features are broken and not usable at all, software crashes label Nov 19, 2025
@TurboGit
Copy link
Member

I'll merge this tomorrow morning (Nov 24) around 8h CET.

@kofa73
Copy link
Contributor Author

kofa73 commented Nov 23, 2025

Thank you!

@TurboGit TurboGit marked this pull request as ready for review November 24, 2025 06:32
@TurboGit TurboGit merged commit 1c7eebf into darktable-org:master Nov 24, 2025
5 checks passed
@kofa73 kofa73 deleted the agx-remove-migration-of-test-versions branch November 24, 2025 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: high core features are broken and not usable at all, software crashes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants