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
Replaced property literals with Properties
constants
#1912
base: issues/1649
Are you sure you want to change the base?
Conversation
I didn't understand why the pipeline contains errors, can someone help me? |
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.
@liooh thanks for the PR. the tests seems failed because something wrong with downloadCount
, can you please double check it? Also it will be good to use static imports for Properties
constants.
Removed wrong replace DownloadCount Removed wrong replace repositoryID and modified import Updated static imports
Thanks! |
...-data-service/src/main/java/org/carlspring/strongbox/gremlin/server/GremlinServerConfig.java
Outdated
Show resolved
Hide resolved
strongbox-rest-client/src/main/java/org/carlspring/strongbox/client/RestClient.java
Show resolved
Hide resolved
@@ -218,7 +219,7 @@ public void updateAuthenticationItems(AuthenticationItems items) | |||
Map<String, Object> properties = authenticationProvidersRegistry.getAuthenticationProperties(item.getName()); | |||
|
|||
properties.put("order", item.getOrder()); | |||
properties.put("enabled", Boolean.TRUE.equals(item.getEnabled())); | |||
properties.put(Properties.ENABLED, Boolean.TRUE.equals(item.getEnabled())); |
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.
@liooh could you please double check all the Properties
usage and ensure that it used only for domain model related places?
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.
I just follow the informed in the task
"... All the vertices and edges property literals should be replaced with corresponding constant from org.carlspring.strongbox.db.schema.Properties ..."
What are domain model related places?
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.
the task description seems right, and here it's not related with vertices or edges. most relevant packages are org.carlspring.strongbox.gremlin.adapters
and org.carlspring.strongbox.repositories
. Maybe a bit other packages as well, just check what is related with DB entities.
@liooh thanks for the changes, it looks like not all imports are static. Could you please check it more? |
@sbespalov, I rechecked imports not static remaining and followed others recommedations marked with "resolved" in the comments. |
Ok, alright |
bd7bc73
to
8313414
Compare
5a76d0f
to
e4fa368
Compare
Pull Request Description
This pull request closes #1842
Acceptance Test
mvn clean install -Dintegration.tests
still works.mvn spring-boot:run
in thestrongbox-web-core
still starts up the application correctly.strongbox-distribution
from azip
ortar.gz
still works.strongbox-web-integration-tests
still run properly.Questions
Does this pull request break backward compatibility?
Does this pull request require other pull requests to be merged first?
Does this require an update of the documentation?
Code Review And Pre-Merge Checklist