Skip to content

fix: Use Digitalsourcetype with Builder intents#1586

Merged
tmathern merged 10 commits into
mainfrom
mathern/digital-source-type
Nov 12, 2025
Merged

fix: Use Digitalsourcetype with Builder intents#1586
tmathern merged 10 commits into
mainfrom
mathern/digital-source-type

Conversation

@tmathern

@tmathern tmathern commented Nov 8, 2025

Copy link
Copy Markdown
Contributor

Changes in this pull request

Either I am using set_intent on the Builder wrong by just calling set_intent with Create and a DigitalSourceType (without changing default settings), or we need a small settings code update to pass through the picked digital source type.

Observed issue: When using the SDK OOTB (no changes in default settings), the set_intent API with Create intent ignores the Digital Source Type passed in (it falls back to the default value in settings).

@gpeacock @ok-nick If you have working examples of passing through digital source types with the set_intent APIs, please show me/tell me what is done wrong in the C API tests. Thanks!

Checklist

  • This PR represents a single feature, fix, or change.
  • All applicable changes have been documented.
  • Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment.

@tmathern tmathern requested review from gpeacock and ok-nick November 8, 2025 05:15
@tmathern tmathern added safe to test check-release Add this label to any PR to invoke a larger suite of tests. labels Nov 8, 2025
@tmathern tmathern changed the title Mathern/digital source type fix: Pass Digital source type through the Builder Nov 8, 2025
@codspeed-hq

codspeed-hq Bot commented Nov 8, 2025

Copy link
Copy Markdown

CodSpeed Performance Report

Merging #1586 will not alter performance

Comparing mathern/digital-source-type (1aaddee) with main (607469e)

Summary

✅ 16 untouched
⏩ 2 skipped1

Footnotes

  1. 2 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@tmathern tmathern marked this pull request as ready for review November 8, 2025 05:59
@tmathern tmathern self-assigned this Nov 9, 2025
Comment thread sdk/src/builder.rs
@tmathern tmathern requested a review from ok-nick November 10, 2025 17:08
@tmathern tmathern changed the title fix: Pass Digital source type through the Builder fix: [ON-HOLD] Pass Digital source type through the Builder Nov 11, 2025
builder.actions.auto_created_actions,
auto_opened_actions and auto_palaced actions.
These are all now disabled and do not set digitalSourceType.
they are still tested with individual unit tests.
I set the default intent to edit in test_settings.toml.
ca_test.json known goods are updated.
If intent is set, it always takes precedent over auto_opened and auto_create.
@tmathern tmathern changed the title fix: [ON-HOLD] Pass Digital source type through the Builder fix: Use Digitalsourcetype with Builder intents Nov 12, 2025
@tmathern tmathern merged commit 06732ee into main Nov 12, 2025
43 checks passed
@tmathern tmathern deleted the mathern/digital-source-type branch November 12, 2025 22:32
@caiopensrc caiopensrc mentioned this pull request Nov 12, 2025
gpeacock added a commit that referenced this pull request Dec 16, 2025
* fix: Take Digital source type into account

* fix: Take Digital source type into account

* fix: CLarify comment

* fix: Remove debug logs

* fix: FOrmat

* fix: Fix the API

* removes default and test file settings for
builder.actions.auto_created_actions,
auto_opened_actions and auto_palaced actions.
These are all now disabled and do not set digitalSourceType.
they are still tested with individual unit tests.
I set the default intent to edit in test_settings.toml.
ca_test.json known goods are updated.
If intent is set, it always takes precedent over auto_opened and auto_create.

* fix: Typos

---------

Co-authored-by: Gavin Peacock <gpeacock@adobe.com>
ribhavh pushed a commit to ribhavh/c2pa-rs that referenced this pull request Jan 8, 2026
* fix: Take Digital source type into account

* fix: Take Digital source type into account

* fix: CLarify comment

* fix: Remove debug logs

* fix: FOrmat

* fix: Fix the API

* removes default and test file settings for
builder.actions.auto_created_actions,
auto_opened_actions and auto_palaced actions.
These are all now disabled and do not set digitalSourceType.
they are still tested with individual unit tests.
I set the default intent to edit in test_settings.toml.
ca_test.json known goods are updated.
If intent is set, it always takes precedent over auto_opened and auto_create.

* fix: Typos

---------

Co-authored-by: Gavin Peacock <gpeacock@adobe.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

check-release Add this label to any PR to invoke a larger suite of tests. safe to test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants