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

refact: fix some code style with check plugin #385

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

seagle-yuan
Copy link

fix checkstyle check

@codecov
Copy link

codecov bot commented Nov 28, 2022

Codecov Report

Attention: Patch coverage is 24.48980% with 37 lines in your changes are missing coverage. Please review.

Project coverage is 62.54%. Comparing base (0a72868) to head (c410bb7).
Report is 94 commits behind head on master.

Files Patch % Lines
.../hugegraph/loader/flink/HugeGraphOutputFormat.java 0.00% 11 Missing ⚠️
...e/hugegraph/loader/spark/HugeGraphSparkLoader.java 0.00% 11 Missing ⚠️
...e/hugegraph/serializer/direct/HBaseSerializer.java 0.00% 8 Missing ⚠️
...e/hugegraph/serializer/direct/reuse/BytesDemo.java 0.00% 6 Missing ⚠️
...rg/apache/hugegraph/exception/ServerException.java 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #385      +/-   ##
============================================
- Coverage     62.58%   62.54%   -0.04%     
- Complexity      894     1866     +972     
============================================
  Files            91      260     +169     
  Lines          4383     9407    +5024     
  Branches        515      872     +357     
============================================
+ Hits           2743     5884    +3141     
- Misses         1437     3141    +1704     
- Partials        203      382     +179     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -54,6 +58,7 @@ public static ServerException fromResponse(Response response) {
exception.cause = (String) getByKeys(json, CAUSE_KEYS);
exception.trace = getByKeys(json, TRACE_KEYS);
} catch (Exception ignored) {
LOG.error(" ServerException excepiton ");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need log here? @javeme

and seems have 2 extra spaces

hugegraph-dist/release-docs/licenses/LICENSE-ant.txt Outdated Show resolved Hide resolved
@@ -57,6 +61,7 @@ public HugeConfig hugeConfig() {
conf = path;
}
} catch (Exception ignored) {
LOG.error("hugeConfig exception");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same question

Comment on lines +439 to +440
vMapping = new org.apache.hugegraph.loader.mapping.VertexMapping(
idFields.get(0), true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if line < 100, use one line instead

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if one line,there is 105 char
image

Comment on lines +314 to +316
request.vertices((List<Vertex>) (Object) graphElements)
.updatingStrategies(updateStrategyMap)
.createIfNotExist(true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

align problem?

Comment on lines +321 to +323
.updatingStrategies(updateStrategyMap)
.checkVertex(isCheckVertex)
.createIfNotExist(true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same, and why we change the name? (seems optional)

Comment on lines +132 to +133
.updatingStrategies(this.mapping.updateStrategies())
.createIfNotExist(true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same, and so as others

@imbajin
Copy link
Member

imbajin commented Nov 29, 2022

image


public class ServerException extends RuntimeException {

private static final long serialVersionUID = 6335623004322652358L;

protected static final Logger LOG = Log.logger(ServerException.class);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mark as private?

@@ -33,6 +35,8 @@
@Configuration
public class HubbleConfig {

protected static final Logger LOG = Log.logger(HubbleConfig.class);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

g.updateVertices(req.build());
BatchVertexRequest.Builder request = new BatchVertexRequest.Builder();
request.vertices((List<Vertex>) (Object) graphElements)
.updatingStrategies(updateStrategyMap)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

align with '.'

.createIfNotExist(true);
BatchEdgeRequest.Builder request = new BatchEdgeRequest.Builder();
request.edges((List<Edge>) (Object) elements)
.updatingStrategies(this.mapping.updateStrategies())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

"not allowed to insert, because already exist a vertex " +
"Connection refused",
"The server is being shutting down",
"not allowed to insert, because already exist a vertex " +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep the origin style?

@imbajin
Copy link
Member

imbajin commented Dec 10, 2022

@seagle-yuan will this PR fixed before release? (before next week) or just leave it in next release

@imbajin imbajin changed the title fix checkstyle check refact: fix some code style with check plugin Dec 10, 2022
@github-actions
Copy link

github-actions bot commented Jan 9, 2023

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

add(peter);
add(lop);
add(vadasB);
}};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we keep the origin style?

add(peterCreateLop);
}};
add(peterCreateLop);
}};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we keep the origin style?

@github-actions
Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@javeme javeme added ci Continuous integration and removed inactive labels Feb 13, 2023
@github-actions
Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@github-actions
Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@liuxiaocs7
Copy link
Member

Hi, @seagle-yuan, any update with this?

@imbajin
Copy link
Member

imbajin commented Jul 18, 2023

Hi, @seagle-yuan, any update with this?

could follow this PR and finish it

@github-actions
Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@imbajin imbajin marked this pull request as draft March 19, 2024 08:57
@liuxiaocs7 liuxiaocs7 marked this pull request as ready for review April 14, 2024 18:05
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. client hugegraph-client hubble hugegraph-hubble java Pull requests that update Java code loader hugegraph-loader tools hugegraph-tools labels Apr 14, 2024
@codecov-commenter
Copy link

codecov-commenter commented Apr 14, 2024

Codecov Report

Attention: Patch coverage is 24.48980% with 37 lines in your changes missing coverage. Please review.

Project coverage is 62.54%. Comparing base (0a72868) to head (c410bb7).
Report is 113 commits behind head on master.

Files with missing lines Patch % Lines
.../hugegraph/loader/flink/HugeGraphOutputFormat.java 0.00% 11 Missing ⚠️
...e/hugegraph/loader/spark/HugeGraphSparkLoader.java 0.00% 11 Missing ⚠️
...e/hugegraph/serializer/direct/HBaseSerializer.java 0.00% 8 Missing ⚠️
...e/hugegraph/serializer/direct/reuse/BytesDemo.java 0.00% 6 Missing ⚠️
...rg/apache/hugegraph/exception/ServerException.java 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #385      +/-   ##
============================================
- Coverage     62.58%   62.54%   -0.04%     
- Complexity      894     1866     +972     
============================================
  Files            91      260     +169     
  Lines          4383     9407    +5024     
  Branches        515      872     +357     
============================================
+ Hits           2743     5884    +3141     
- Misses         1437     3141    +1704     
- Partials        203      382     +179     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@liuxiaocs7 liuxiaocs7 mentioned this pull request Apr 14, 2024
11 tasks
Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@javeme
Copy link
Contributor

javeme commented Aug 10, 2024

@imbajin could you move this PR forward?

@imbajin
Copy link
Member

imbajin commented Aug 10, 2024

@imbajin could you move this PR forward?

@liuxiaocs7 is working on it but busy for now (hold it on)

Also this PR is not urgent(low priority)

Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Continuous integration client hugegraph-client hubble hugegraph-hubble java Pull requests that update Java code loader hugegraph-loader size:XL This PR changes 500-999 lines, ignoring generated files. tools hugegraph-tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants