Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

states instead of files #34

Merged
merged 5 commits into from
Aug 11, 2023
Merged

states instead of files #34

merged 5 commits into from
Aug 11, 2023

Conversation

h1alexbel
Copy link
Member

@h1alexbel h1alexbel commented Aug 11, 2023

closes #32

@l3r8yJ take a look, please


PR-Codex overview

Detailed summary

  • Updated XML structure in master.xml file to include states and change states.
  • Added State interface in State.java.
  • Renamed Ids class to Sha in Sha.java.
  • Updated Names and Authors classes to retrieve file names and authors based on state ID.
  • Added new test classes for Author, Sha, and StateChanges.
  • Updated Master class to use new Names constructor.

The following files were skipped due to too many changes: src/main/java/io/github/eocqrs/cmig/sha/Sha.java, src/main/java/io/github/eocqrs/cmig/sha/StateChanges.java

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@zoeself
Copy link
Collaborator

zoeself commented Aug 11, 2023

@h1alexbel thank you for your Pull Request. I'll assign someone to review it soon.

If this PR solves a todo from the code, please don't forget to remove it.

@codecov
Copy link

codecov bot commented Aug 11, 2023

Codecov Report

Patch coverage: 94.11% and project coverage change: +21.99% 🎉

Comparison is base (2dab3be) 30.50% compared to head (d516b03) 52.50%.
Report is 11 commits behind head on master.

Additional details and impacted files
@@              Coverage Diff              @@
##             master      #34       +/-   ##
=============================================
+ Coverage     30.50%   52.50%   +21.99%     
- Complexity        8       11        +3     
=============================================
  Files             6        7        +1     
  Lines            59       80       +21     
  Branches          0        1        +1     
=============================================
+ Hits             18       42       +24     
+ Misses           41       38        -3     
Files Changed Coverage Δ
src/main/java/io/github/eocqrs/cmig/Master.java 0.00% <0.00%> (ø)
...c/main/java/io/github/eocqrs/cmig/meta/Author.java 100.00% <100.00%> (ø)
...rc/main/java/io/github/eocqrs/cmig/meta/Names.java 100.00% <100.00%> (+42.85%) ⬆️
src/main/java/io/github/eocqrs/cmig/sha/Sha.java 100.00% <100.00%> (ø)
...n/java/io/github/eocqrs/cmig/sha/StateChanges.java 100.00% <100.00%> (ø)

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

@zoeself
Copy link
Collaborator

zoeself commented Aug 11, 2023

@h1alexbel please review this Pull Request. Deadline (when it should be merged or closed) is 2023-08-14T09:09:06.991792.

You should check if the requirements have been implemented (partially or in full), if there are unit tests covering the changes and if the CI build passes. Feel free to reject the PR or ask for changes if it's too big or not clear enough.

Estimation here is 30 minutes, that's how much you will be paid. You will be paid even if this PR gets rejected.

@h1alexbel h1alexbel requested a review from l3r8yJ August 11, 2023 09:18
@h1alexbel
Copy link
Member Author

@zoeself deregister

@zoeself
Copy link
Collaborator

zoeself commented Aug 11, 2023

@zoeself deregister

@h1alexbel ok, I've removed this task from scope. I'm not managing it anymore.

@h1alexbel
Copy link
Member Author

@zoeself register

@zoeself
Copy link
Collaborator

zoeself commented Aug 11, 2023

@zoeself register

@h1alexbel I've just registered this ticket as a task and will assign it to someone soon. Thanks!

@zoeself
Copy link
Collaborator

zoeself commented Aug 11, 2023

@h1alexbel please review this Pull Request. Deadline (when it should be merged or closed) is 2023-08-14T09:19:05.633557.

You should check if the requirements have been implemented (partially or in full), if there are unit tests covering the changes and if the CI build passes. Feel free to reject the PR or ask for changes if it's too big or not clear enough.

Estimation here is 30 minutes, that's how much you will be paid. You will be paid even if this PR gets rejected.

Copy link
Member

@l3r8yJ l3r8yJ left a comment

Choose a reason for hiding this comment

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

@h1alexbel take a look at my comments below, please

value,
new IsEqual<>(
new ListOf<>(
"CREATE KEYSPACE queryDatasets\n" +
Copy link
Member

Choose a reason for hiding this comment

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

in java 17 we can use """ as far as i remember

Copy link
Member Author

Choose a reason for hiding this comment

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

@l3r8yJ yeah, but JTCOP doesn't support it

Copy link
Member

Choose a reason for hiding this comment

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

@h1alexbel i think it's reason to suppress it and create a bug report, preferably with a test

Copy link
Member Author

Choose a reason for hiding this comment

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

@l3r8yJ we can't suppres it, it will fail on Java version, bug report idea looks good

src/main/java/io/github/eocqrs/cmig/sha/Sha.java Outdated Show resolved Hide resolved
src/main/java/io/github/eocqrs/cmig/meta/Authors.java Outdated Show resolved Hide resolved
src/main/java/io/github/eocqrs/cmig/sha/Contents.java Outdated Show resolved Hide resolved
@h1alexbel
Copy link
Member Author

@l3r8yJ master code a bit
take a look again, please

Copy link
Member

@l3r8yJ l3r8yJ left a comment

Choose a reason for hiding this comment

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

@h1alexbel much better now, take a look again, please

value,
new IsEqual<>(
new ListOf<>(
"CREATE KEYSPACE queryDatasets\n" +
Copy link
Member

Choose a reason for hiding this comment

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

what about """ and bug report to jtcop?

Copy link
Member Author

Choose a reason for hiding this comment

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

@l3r8yJ here it is

import java.util.List;

/**
* Test suite for {@link StateChanges}.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* Test suite for {@link StateChanges}.
* Test case for {@link StateChanges}.

I think that name might confuse some programmers which familiar with TestNG

Copy link
Member Author

Choose a reason for hiding this comment

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

@l3r8yJ test suite is a set of test cases;
test suite in java presented test class

So, either Test suite or Test cases, but not a Test case

@h1alexbel
Copy link
Member Author

@l3r8yJ

Copy link
Member

@l3r8yJ l3r8yJ left a comment

Choose a reason for hiding this comment

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

@h1alexbel looks good to me!!

@h1alexbel
Copy link
Member Author

@rultor merge

@rultor
Copy link
Collaborator

rultor commented Aug 11, 2023

@rultor merge

@h1alexbel OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit 8d1946d into master Aug 11, 2023
@rultor
Copy link
Collaborator

rultor commented Aug 11, 2023

@rultor merge

@h1alexbel Done! FYI, the full log is here (took me 2min)

@zoeself
Copy link
Collaborator

zoeself commented Aug 11, 2023

@h1alexbel thank you for resolving this ticket. I've just added it to your active invoice. You can always check all your invoices and more on the Contributor Dashboard.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

changeState instead of file
4 participants