-
Notifications
You must be signed in to change notification settings - Fork 6
[NAE-2261] SEARCH Node - fetch cases from mongo #385
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
base: release/7.0.0-rev10
Are you sure you want to change the base?
Changes from all commits
7fbe3f8
86272f6
9befc60
b7d12ff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,24 @@ | ||||||||||||||||
| package com.netgrif.application.engine.objects.auth.dto; | ||||||||||||||||
|
|
||||||||||||||||
| import lombok.Data; | ||||||||||||||||
| import lombok.EqualsAndHashCode; | ||||||||||||||||
| import lombok.NonNull; | ||||||||||||||||
| import lombok.ToString; | ||||||||||||||||
|
Comment on lines
+3
to
+6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Remove unused import.
import lombok.Data;
import lombok.EqualsAndHashCode;
-import lombok.NonNull;
import lombok.ToString;📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||
|
|
||||||||||||||||
| import java.io.Serial; | ||||||||||||||||
| import java.io.Serializable; | ||||||||||||||||
|
|
||||||||||||||||
| @Data | ||||||||||||||||
| public class AuthPrincipalDto implements Serializable { | ||||||||||||||||
|
|
||||||||||||||||
| @Serial | ||||||||||||||||
| private static final long serialVersionUID = 6725518942728316525L; | ||||||||||||||||
|
|
||||||||||||||||
| private String username; | ||||||||||||||||
|
|
||||||||||||||||
| private String realmId; | ||||||||||||||||
|
|
||||||||||||||||
| @ToString.Exclude | ||||||||||||||||
| @EqualsAndHashCode.Exclude | ||||||||||||||||
| private String sessionId; | ||||||||||||||||
| } | ||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| package com.netgrif.application.engine.objects.elastic.domain; | ||
|
|
||
| import lombok.AllArgsConstructor; | ||
| import lombok.Data; | ||
|
|
||
| import java.io.Serial; | ||
| import java.io.Serializable; | ||
|
|
||
| @Data | ||
| @AllArgsConstructor | ||
| public class NodeInfo implements Serializable { | ||
|
|
||
| @Serial | ||
| private static final long serialVersionUID = 7454569786379865L; | ||
|
|
||
| private String nodeHost; | ||
| private int nodePort; | ||
| } | ||
|
Comment on lines
+9
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add This class is used as a field in @Data
@AllArgsConstructor
+@NoArgsConstructor
public class NodeInfo implements Serializable {Also add the import: import lombok.NoArgsConstructor;🤖 Prompt for AI Agents |
||
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.
🧩 Analysis chain
🏁 Script executed:
Repository: netgrif/application-engine
Length of output: 2089
🏁 Script executed:
Repository: netgrif/application-engine
Length of output: 292
🏁 Script executed:
Repository: netgrif/application-engine
Length of output: 240
🏁 Script executed:
# Read the I18nStringUtils file to see the collectTranslations implementation cat -n nae-object-library/src/main/java/com/netgrif/application/engine/objects/elastic/domain/I18nStringUtils.javaRepository: netgrif/application-engine
Length of output: 786
🏁 Script executed:
Repository: netgrif/application-engine
Length of output: 1830
🏁 Script executed:
Repository: netgrif/application-engine
Length of output: 240
🏁 Script executed:
Repository: netgrif/application-engine
Length of output: 52
🏁 Script executed:
Repository: netgrif/application-engine
Length of output: 1025
🏁 Script executed:
Repository: netgrif/application-engine
Length of output: 1771
🏁 Script executed:
# Check the git history of this specific method to understand its evolution git log --oneline -n 20 -- application-engine/src/main/java/com/netgrif/application/engine/elastic/service/ElasticCaseMappingService.javaRepository: netgrif/application-engine
Length of output: 150
Inconsistent error handling: missing options keys are silently converted to empty translations.
The code at line 98 does not validate that all keys from
mapValuesexist in theoptionsmap. WhileI18nStringUtils.collectTranslations(null)handles null gracefully by returning an empty list, this pattern is inconsistent with the error handling established elsewhere in this class. Other methods (e.g., lines 163, 180, 194) log errors when encountering data inconsistencies. Consider either adding validation to ensure all keys are present in the options map, or logging a warning whenoptions.get(key)returns null to make data issues visible during debugging.🤖 Prompt for AI Agents