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

Cqf-Tooling : NewRefreshIg update #528

Merged
merged 22 commits into from
May 17, 2024
Merged

Cqf-Tooling : NewRefreshIg update #528

merged 22 commits into from
May 17, 2024

Conversation

ddieppois
Copy link
Contributor

_Added CqlRefresh in order to update cql file before conversion.
_Made sure that we have the cql data inside the json library and that it matches the udpated cql
_Update tests to verify everything works as expected.

  • Github Issue:
  • I've read the contribution guidelines
  • Code compiles without errors
  • Tests are created / updated
  • Documentation is created / updated

By creating this PR you acknowledge that your contribution will be licensed under Apache 2.0

daviddieppois added 2 commits May 7, 2024 13:49
_Made sure that we have the cql data inside the json library and that it matches the udpated cql
_Update tests to verify everything works as expected.
@ddieppois ddieppois requested review from JPercival and c-schuler May 13, 2024 13:23
@ddieppois ddieppois self-assigned this May 13, 2024
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class CqlRefresh extends Refresh {
Copy link
Member

Choose a reason for hiding this comment

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

Should call this CqlVersionRefresh, yes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll rename it thanks !

public class CqlRefresh extends Refresh {

private static final Logger logger = LoggerFactory.getLogger(CqlRefresh.class);
private final Pattern VERSION_PATTERN = Pattern.compile("^(library\\s+(\\S+)\\s+version\\s+)'[0-9]+\\.[0-9]+\\.[0-9]+'");
Copy link
Member

Choose a reason for hiding this comment

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

Not sure whether this would be easier, but it seems like it would definitely be more robust to use the Antlr visitor framework for this?

Copy link
Member

@brynrhodes brynrhodes left a comment

Choose a reason for hiding this comment

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

Left a few comments, but I don't feel they warrant holding up the PR

@JPercival JPercival force-pushed the NewRefreshIgUpdate branch from 6d28250 to fc3c1d8 Compare May 17, 2024 14:33
@JPercival JPercival enabled auto-merge (squash) May 17, 2024 14:57
@JPercival JPercival merged commit 0949d9b into master May 17, 2024
3 checks passed
@JPercival JPercival deleted the NewRefreshIgUpdate branch May 17, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants