Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the Sort by Create Time Capability to the JS Client #3928

Closed
1 task done
Tracked by #3896
psavidis opened this issue Nov 8, 2023 · 0 comments
Closed
1 task done
Tracked by #3896

Add the Sort by Create Time Capability to the JS Client #3928

psavidis opened this issue Nov 8, 2023 · 0 comments
Assignees
Labels
scope:external-task-client-js Changes to the Javascript external task client. type:subtask Issues that are subtasks of another issue. Must always be part of the breakdown of the parent issue. version:external-task-client-js 3.1.0

Comments

@psavidis
Copy link
Contributor

psavidis commented Nov 8, 2023

Acceptance Criteria (Required on creation)

  • Similar to the Java Client, the sorting capability by createTime should be added to the JS Client
  • In the FetchExternalTasksDto sent to the fetchAndLock REST Endpoint, the following parameters have been added:
{
	"maxTasks" : 1,
	"workerId" : "workerId",
	"usePriority" : false,

         // This is the newly introduced config
        "sorting" : [{
	        "sortBy" : "createTime",
	        "sortOrder" : "asc" // asc, desc.
        }],
	"topics" : [],
	"includeExtensionProperties" : false
}

The above example can be used to complement the new "createTimeConfig" parameter to the rest calls performed by the js client.

Hints

Links

External Tasks are Sorted By Creation Date

Breakdown

Pull Requests

Preview Give feedback
  1. danielkelemen
@psavidis psavidis added the type:subtask Issues that are subtasks of another issue. Must always be part of the breakdown of the parent issue. label Nov 8, 2023
@psavidis psavidis self-assigned this Nov 8, 2023
@psavidis psavidis assigned danielkelemen and unassigned psavidis Nov 9, 2023
danielkelemen added a commit to camunda/camunda-external-task-client-js that referenced this issue Dec 19, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@tasso94 tasso94 assigned danielkelemen and unassigned tasso94 Dec 20, 2023
danielkelemen added a commit to camunda/camunda-external-task-client-js that referenced this issue Jan 5, 2024
@tasso94 tasso94 assigned danielkelemen and unassigned tasso94 Jan 22, 2024
danielkelemen added a commit to camunda/camunda-external-task-client-js that referenced this issue Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:external-task-client-js Changes to the Javascript external task client. type:subtask Issues that are subtasks of another issue. Must always be part of the breakdown of the parent issue. version:external-task-client-js 3.1.0
Projects
None yet
Development

No branches or pull requests

3 participants