Skip to content

Add transaction-based variants for all queue functions - #402

Merged
brandur merged 1 commit into
masterfrom
brandur-queue-tx
Jun 26, 2024
Merged

Add transaction-based variants for all queue functions#402
brandur merged 1 commit into
masterfrom
brandur-queue-tx

Conversation

@brandur

@brandur brandur commented Jun 26, 2024

Copy link
Copy Markdown
Contributor

I noticed while trying to write tests for River UI that it wasn't
possible to use any of the queue endpoints with a test transaction
because unlike functions Client.Insert which have a transaction based
InsertTx variant, queue functions can only work on the main pool.

Here, add transaction variants for all queue functions:

  • QueueGetTx
  • QueueListTx
  • QueuePauseTx
  • QueueResumeTx

@brandur
brandur force-pushed the brandur-queue-tx branch from 33beb8f to ce6e615 Compare June 26, 2024 01:51
@brandur
brandur requested a review from bgentry June 26, 2024 01:55
@brandur

brandur commented Jun 26, 2024

Copy link
Copy Markdown
Contributor Author

@bgentry I was trying to write more tests for River UI endpoints, but found that since I was using test transactions, it wasn't possible to test the queue-related stuff because transaction-based functions were missing. Mind taking a look at this one?

@bgentry bgentry left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔥

I noticed while trying to write tests for River UI that it wasn't
possible to use any of the queue endpoints with a test transaction
because unlike functions `Client.Insert` which have a transaction based
`InsertTx` variant, queue functions can only work on the main pool.

Here, add transaction variants for all queue functions:

* `QueueGetTx`
* `QueueListTx`
* `QueuePauseTx`
* `QueueResumeTx`
@brandur
brandur force-pushed the brandur-queue-tx branch from ce6e615 to 93c7cbd Compare June 26, 2024 02:29
@brandur
brandur merged commit 2809311 into master Jun 26, 2024
@brandur
brandur deleted the brandur-queue-tx branch June 26, 2024 02:33
brandur added a commit that referenced this pull request Jun 26, 2024
Prepare release for version 0.8.0 which includes some additions and
fixes like #402 and #401.
@brandur brandur mentioned this pull request Jun 26, 2024
brandur added a commit that referenced this pull request Jun 26, 2024
Prepare release for version 0.8.0 which includes some additions and
fixes like #402 and #401.
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