-
-
Notifications
You must be signed in to change notification settings - Fork 13
Development #1263
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
Merged
Merged
Development #1263
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
b070931
Core - API - review and polish of instance mutex utility
GregJohnStewart 7413b26
Core - API - polish and documentation of mutex utilities
GregJohnStewart 03614aa
Merge branch 'development' into dev/1227-fr-core-api-add-item-mutex
GregJohnStewart 158118c
Merge branch 'development' into dev/1227-fr-core-api-add-item-mutex
GregJohnStewart 42f3962
Core - API - adding mutex to applied transaction service / added add …
GregJohnStewart 560b422
Core - API - adding mutex to item updates
GregJohnStewart 345174c
Lib - Core API for Quarkus - removed now defunct rest method
GregJohnStewart 8e5e0eb
Core - API - now doing item mutex on stored updates
GregJohnStewart a81fc10
Core - API - version bump for dev
GregJohnStewart 53a53dd
Core - API - Organized applied transaction service tests
GregJohnStewart 7d863fa
Core - API - Added thread-based test for updating inventory items to …
GregJohnStewart 35710d5
Core - API - Added todo/ reference to issue for later improvement
GregJohnStewart 16b7be4
Core - API - Incorporated db id in the mutex id of inventory items
GregJohnStewart 62415d3
Core - API - Added startup handler to ensure item mutexes are created
GregJohnStewart 8b3ddcb
Core - API - Added a bunch of spans, slight change to make transactio…
GregJohnStewart e66734b
Core - API - Optimizing threaded testing to reduce required testing time
GregJohnStewart 7ca4c81
Core - API - Changes from review, added more custom exceptions for mu…
GregJohnStewart 1e9395d
Core - API - Tweaks to mutex tests
GregJohnStewart a64fe72
Merge pull request #1260 from Epic-Breakfast-Productions/dev/1227-fr-…
GregJohnStewart 581c1e2
Core - API - Added initial new objects for stored state
GregJohnStewart d184c27
basic mongodb indexig added
axgiri de33745
Refactor MongoDB initialization and indexing logic across services
axgiri 4eb6d21
add unique and background options to mongodb indexes
axgiri 239afdb
refactor: add index initialization to TopLevelMongoService and MongoD…
axgiri a15f8aa
Core - API - Set stored to use new stored state object. Updated store…
GregJohnStewart f3b2f8e
Core - API - updated itemStatsService to reflect new stored state
GregJohnStewart bde2c43
Core - API - initial usage of stored state rework
GregJohnStewart 6d8f32c
move ensureItemMutexesExist call after db init
axgiri 4ebe0f0
Core - API - Fixed tests related to stored state rework
GregJohnStewart 4b37d09
Core - API - Now working upgrader
GregJohnStewart d2b2ea4
Lib - Core API for Quarkus - Updates for new stored search
GregJohnStewart 3ddfee5
Core - Base Station - version bump for dev
GregJohnStewart 9ac14ba
static implementation defined in MongoService
axgiri 6faf287
Core - Base Station - Fixed search result tweaks for stored results
GregJohnStewart b5d949f
Bump com.microsoft.playwright:playwright
dependabot[bot] cd1b914
Bump tech.units:indriya in /software/core/oqm-core-api
dependabot[bot] 0e2ac71
Bump org.junit.jupiter:junit-jupiter-params
dependabot[bot] 0ace2db
Bump ubi9/ubi-minimal in /software/plugins/storagotchi/src/main/docker
dependabot[bot] db5a60c
Core - Base Station - Fixing storage block label viewing in storeds
GregJohnStewart 31d606e
Merge pull request #1267 from Epic-Breakfast-Productions/dependabot/g…
GregJohnStewart 32a7a3a
Merge branch 'development' into dependabot/docker/software/plugins/st…
GregJohnStewart 0fdfa13
Merge pull request #1269 from Epic-Breakfast-Productions/dependabot/d…
GregJohnStewart adc297a
Merge branch 'development' into dependabot/gradle/software/core/oqm-c…
GregJohnStewart 21b67b8
Merge pull request #1266 from Epic-Breakfast-Productions/dependabot/g…
GregJohnStewart c6e45a2
Merge branch 'development' into dependabot/gradle/software/core/oqm-c…
GregJohnStewart 32a2ae2
Merge pull request #1268 from Epic-Breakfast-Productions/dependabot/g…
GregJohnStewart 2bb4942
Merge branch 'development' into dev/1228-fr-core-api-change-stored-fi…
GregJohnStewart dcfbbaa
Core - Base Station - Updating required core api version for snh
GregJohnStewart 1898d9d
Merge branch 'main' into development
GregJohnStewart 01c9a0d
Merge branch 'development' into dev/1228-fr-core-api-change-stored-fi…
GregJohnStewart 38eb983
Core - API - Fixing some openapi definition
GregJohnStewart 71ceead
Core - Base Station - More fixing to stored things
GregJohnStewart e60c2c2
Core - API - Adding to checks for transfer amount applier
GregJohnStewart f40839a
Core - Base Station - eliminating a possible edge case that fails tests
GregJohnStewart 96b53db
Core - API - Tweaks from review
GregJohnStewart 6a5f47a
Merge pull request #1270 from Epic-Breakfast-Productions/dev/1228-fr-…
GregJohnStewart f8816b1
Merge pull request #1264 from axgiri/dev/301-mongodb-indexing
GregJohnStewart a7ba727
Lib - Core API for Quarkus - Now using real entity for interacting en…
GregJohnStewart e12be24
Core - Base Station - Fixing getting user info properly
GregJohnStewart 87562ab
Core - API - Cleanup of unused api
GregJohnStewart a9ada78
Core - API - Improvements from review
GregJohnStewart 05ce88b
Core - Characteristics - Fixing potential issue in parsing ui entries
GregJohnStewart 253ad1e
Core - Base Station - Fixing the display, or rather not displaying, a…
GregJohnStewart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
29 changes: 29 additions & 0 deletions
29
software/core/oqm-core-api/src/main/java/tech/ebp/oqm/core/api/config/MutexConfig.java
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| package tech.ebp.oqm.core.api.config; | ||
|
|
||
| import io.smallrye.config.ConfigMapping; | ||
| import io.smallrye.config.WithDefault; | ||
|
|
||
| import java.time.Duration; | ||
|
|
||
| @ConfigMapping(prefix = "service.mutex", namingStrategy = ConfigMapping.NamingStrategy.VERBATIM) | ||
| public interface MutexConfig { | ||
|
|
||
| @WithDefault("${quarkus.uuid}") | ||
| String instanceId(); | ||
|
|
||
| @WithDefault("10m") | ||
| Duration lockExpireDuration(); | ||
|
|
||
| AwaitConfig await(); | ||
|
|
||
| interface AwaitConfig { | ||
| @WithDefault("30s") | ||
| Duration timeout(); | ||
|
|
||
| @WithDefault("0ms") | ||
| Duration loopPauseMin(); | ||
|
|
||
| @WithDefault("50ms") | ||
| Duration loopPauseMax(); | ||
| } | ||
| } | ||
10 changes: 10 additions & 0 deletions
10
...-api/src/main/java/tech/ebp/oqm/core/api/exception/mutex/MutexNotRegisteredException.java
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| package tech.ebp.oqm.core.api.exception.mutex; | ||
|
|
||
| /** | ||
| * Exception to use when a lock is attempted on a non registered mutex. | ||
| */ | ||
|
GregJohnStewart marked this conversation as resolved.
|
||
| public class MutexNotRegisteredException extends IllegalStateException { | ||
| public MutexNotRegisteredException(String mutexId) { | ||
| super("Mutex with id " + mutexId + " was not registered when lock attempt made."); | ||
| } | ||
| } | ||
10 changes: 10 additions & 0 deletions
10
...pi/src/main/java/tech/ebp/oqm/core/api/exception/mutex/MutexWaitInterruptedException.java
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| package tech.ebp.oqm.core.api.exception.mutex; | ||
|
|
||
| /** | ||
| * Exception to use when a wait for a mutex lock has been interrupted. | ||
| */ | ||
|
GregJohnStewart marked this conversation as resolved.
|
||
| public class MutexWaitInterruptedException extends IllegalStateException { | ||
| public MutexWaitInterruptedException(InterruptedException e) { | ||
| super("Mutex wait interrupted.", e); | ||
| } | ||
| } | ||
This file contains hidden or 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
This file contains hidden or 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
88 changes: 0 additions & 88 deletions
88
...qm-core-api/src/main/java/tech/ebp/oqm/core/api/interfaces/endpoints/info/RunByUtils.java
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.