Skip to content

Use new placeholder references in commands to cut down on sequential AAP-API calls#380

Open
Thomas-Geraghty wants to merge 10 commits intomainfrom
use-placeholder-refs-in-commands
Open

Use new placeholder references in commands to cut down on sequential AAP-API calls#380
Thomas-Geraghty wants to merge 10 commits intomainfrom
use-placeholder-refs-in-commands

Conversation

@Thomas-Geraghty
Copy link
Contributor

@Thomas-Geraghty Thomas-Geraghty commented Mar 4, 2026

AAP-API recently got the ability to do placeholders/references for commands so that you can build items in collections in the same command that creates the collection, vastly cutting down on the amount of API calls that need to be made. Should improve performance a little 😄

@Thomas-Geraghty Thomas-Geraghty requested a review from a team as a code owner March 4, 2026 21:03
@Thomas-Geraghty Thomas-Geraghty enabled auto-merge (squash) March 4, 2026 21:08
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

Unit Test Results

    1 files  ±0    205 suites  ±0   14s ⏱️ ±0s
3 023 tests ±0  3 023 ✅ ±0  0 💤 ±0  0 ❌ ±0 
3 024 runs  ±0  3 024 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 3b8dcc5. ± Comparison against base commit dcfa932.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Mar 4, 2026

Playwright Test Results

415 tests  ±0   412 ✅ +1   48m 47s ⏱️ +47s
 83 suites ±0     2 💤 ±0 
  1 files   ±0     1 ❌  - 1 

For more details on these failures, see this check.

Results for commit 3b8dcc5. ± Comparison against base commit dcfa932.

♻️ This comment has been updated with latest results.

})

const results = await deps.api.executeCommands(...commands)
const addResult = results[commands.length - 1] as AddCollectionItemCommandResult
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it worth using a type guard here the same way you do in the AssessmentBuilder test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ended up removing this!

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