-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
chore(clients): Add useCreateTime to Java Client #3919
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
psavidis
changed the title
3896 java client
chore(clients): Add useCreateTime to Java Client
Nov 7, 2023
This was referenced Nov 7, 2023
- MyBatis Adjustments - ExternalTask is saved & Creation Date is persisted - orderByCreationDate works with ASC & DESC Order - HistoryExternalTaskLog uses creation date
Creation-Date & Priority
- Add parameter useCreationDate to ExternalTaskService - The parameter passes-through until FetchExternalTasksCmd where it is not currently utilized
Adjust test usage of externalTaskService#fetchAndLock to use `useCreationDate` with false value
- Configuring creationDate fro ExternalTaskService#fetchAndLock is performed using `CreationDateConfig` enum - ExternalTaskRestService uses `CreationDateConfig` DTO to pass direction and enablement /disablement of `useCreationDate` param - Unit Tests for creationDate DESC, ASC order using ExternalTaskService - Pending are the multi-level sorting tests for both priority and creationDate
- Remove Tests and rewrite them: testFetchWithCreationDateASC testFetchWithCreationDateDESC Replaced by: shouldFetchWithCreationDateDESCWithoutPriority shouldFetchWithCreationDateASCWithoutPriority - Externalise CreationDate to `LockedExternalTaskImpl`
psavidis
force-pushed
the
3896-fetch-and-lock
branch
from
November 9, 2023 16:11
5d7a359
to
05e9de6
Compare
- Replace conditionals with Map
This commit extends the REST API to include creation-date as a criterion
21 tasks
psavidis
force-pushed
the
3896-java-client
branch
from
November 14, 2023 15:54
1c66ec9
to
eb8b8cf
Compare
psavidis
force-pushed
the
3896-fetch-and-lock
branch
from
November 14, 2023 16:29
021e508
to
c7df2d7
Compare
- Apply Code Review points - Use Sortings for fetch And Lock API
psavidis
force-pushed
the
3896-fetch-and-lock
branch
from
November 15, 2023 07:33
c7df2d7
to
5033882
Compare
psavidis
force-pushed
the
3896-java-client
branch
from
November 15, 2023 08:32
b6f5de1
to
900b04c
Compare
Refactor FetchAndLockBuilder not to extend ExternalTaskQueryTopicBuilder but rather return it
psavidis
force-pushed
the
3896-java-client
branch
from
November 17, 2023 07:34
900b04c
to
98a68b7
Compare
- Fix constructors to initialize internally dependencies that do not belong outside their scope - ExternalTaskQueryTopicBuilderImpl copy constructor copies currentInstruction
mboskamp
requested changes
Nov 27, 2023
clients/java/client/src/main/java/org/camunda/bpm/client/ExternalTaskClientBuilder.java
Outdated
Show resolved
Hide resolved
clients/java/client/src/main/java/org/camunda/bpm/client/ExternalTaskClientBuilder.java
Outdated
Show resolved
Hide resolved
clients/java/client/src/main/java/org/camunda/bpm/client/ExternalTaskClientBuilder.java
Show resolved
Hide resolved
clients/java/client/src/main/java/org/camunda/bpm/client/task/CreateTimeConfig.java
Outdated
Show resolved
Hide resolved
clients/java/client/src/main/java/org/camunda/bpm/client/task/CreateTimeConfig.java
Outdated
Show resolved
Hide resolved
clients/java/client/src/it/java/org/camunda/bpm/client/client/ClientIT.java
Show resolved
Hide resolved
clients/java/client/src/it/java/org/camunda/bpm/client/client/ClientIT.java
Outdated
Show resolved
Hide resolved
clients/java/client/src/it/java/org/camunda/bpm/client/client/ClientIT.java
Outdated
Show resolved
Hide resolved
clients/java/client/src/it/java/org/camunda/bpm/client/client/ClientIT.java
Show resolved
Hide resolved
clients/java/client/src/it/java/org/camunda/bpm/client/client/ClientIT.java
Outdated
Show resolved
Hide resolved
tasso94
reviewed
Nov 28, 2023
clients/java/client/src/main/java/org/camunda/bpm/client/ExternalTaskClientBuilder.java
Outdated
Show resolved
Hide resolved
psavidis
force-pushed
the
3896-java-client
branch
3 times, most recently
from
November 30, 2023 14:47
3e8106f
to
63c129b
Compare
psavidis
force-pushed
the
3896-fetch-and-lock
branch
from
November 30, 2023 15:23
db5d9e3
to
3818ff3
Compare
psavidis
force-pushed
the
3896-java-client
branch
from
November 30, 2023 15:23
63c129b
to
b1e999c
Compare
- Remove execute method from FetchAndLockBuilder - Refactor FetchAndLockBuilderImpl to use a List instead of a Map and make it similar to the QueryAPI for the sake of consistency - Add tests for covering invalid usages of fetchAndLock API - Infer useCreateTime - Correct JavaDoc - Generify Sorting of FetchAndLock Impl - Remove var
psavidis
force-pushed
the
3896-fetch-and-lock
branch
from
December 1, 2023 14:23
3818ff3
to
cea05c6
Compare
- Generify Fetch and Lock Sorting - Apply Suggestions - Make ExternalTaskClientBuilder API similar to the engine's using Fluent API, asc & desc methods - useCreateTime as a method with sensible default for the user
psavidis
force-pushed
the
3896-java-client
branch
from
December 1, 2023 14:50
26b1ae7
to
497055d
Compare
- Remove execute method from FetchAndLockBuilder - Refactor FetchAndLockBuilderImpl to use a List instead of a Map and make it similar to the QueryAPI for the sake of consistency - Add tests for covering invalid usages of fetchAndLock API - Infer useCreateTime - Correct JavaDoc - Generify Sorting of FetchAndLock Impl - Remove var
psavidis
force-pushed
the
3896-fetch-and-lock
branch
from
December 1, 2023 14:57
cea05c6
to
c50657a
Compare
- Add tests for invalid usages of ExternalTaskClient - Remove override annotations - Refactor OrderConfig to Use a List instead of a Map
# Conflicts: # engine/src/main/java/org/camunda/bpm/engine/externaltask/FetchAndLockBuilder.java
- Validate against misusing orderByCreateTime and useCreateTime configurations together - Validate against wrong orderByCreateTime values
psavidis
force-pushed
the
3896-java-client
branch
from
December 4, 2023 15:53
f16bd70
to
dae9afb
Compare
psavidis
commented
Dec 5, 2023
...ter-client/spring/src/main/java/org/camunda/bpm/client/spring/impl/client/ClientFactory.java
Outdated
Show resolved
Hide resolved
… Input Validation
mboskamp
approved these changes
Dec 13, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Only found minor things. Well done!
clients/java/client/src/it/java/org/camunda/bpm/client/client/ClientIT.java
Outdated
Show resolved
Hide resolved
...nts/java/client/src/main/java/org/camunda/bpm/client/impl/ExternalTaskClientBuilderImpl.java
Outdated
Show resolved
Hide resolved
clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
Outdated
Show resolved
Hide resolved
clients/java/client/src/main/java/org/camunda/bpm/client/task/OrderingConfig.java
Outdated
Show resolved
Hide resolved
.../spring/src/main/java/org/camunda/bpm/client/spring/annotation/EnableExternalTaskClient.java
Outdated
Show resolved
Hide resolved
...ter-client/spring/src/main/java/org/camunda/bpm/client/spring/impl/client/ClientFactory.java
Outdated
Show resolved
Hide resolved
clients/java/client/src/it/java/org/camunda/bpm/client/client/ClientIT.java
Show resolved
Hide resolved
baseUrl had to configured so that the method tests the right message & exception
- Avoid Null Check - Improve JavaDoc - Move orderingConfig validation up - Group ExternalTaskClientException creation in ExternalTaskClientLogger - Simplify validateOrderingProperties
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related-to: #3896