-
Notifications
You must be signed in to change notification settings - Fork 23
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
Conversation
_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.
import java.util.stream.Collectors; | ||
import java.util.stream.Stream; | ||
|
||
public class CqlRefresh extends Refresh { |
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.
Should call this CqlVersionRefresh, yes?
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'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]+'"); |
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.
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?
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.
Left a few comments, but I don't feel they warrant holding up the PR
6d28250
to
fc3c1d8
Compare
_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.
By creating this PR you acknowledge that your contribution will be licensed under Apache 2.0