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

add support for global endpoint uri completion #121 #125

Closed
wants to merge 1 commit into from

Conversation

lhein
Copy link
Collaborator

@lhein lhein commented Aug 3, 2018

Signed-off-by: Lars Heinemann [email protected]

apupier
apupier previously requested changes Aug 3, 2018
Copy link
Member

@apupier apupier left a comment

Choose a reason for hiding this comment

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

I think it is affecting Java too. I think that we need to include test for Java dsl too.

int nextQuote = line.indexOf('\"', uriAttribute + 5);
if (isBetween(characterPosition, uriAttribute + 5, nextQuote)) {
return line.substring(uriAttribute + 5, nextQuote);
int firstQuote = line.indexOf('\"', uriAttribute);
Copy link
Member

Choose a reason for hiding this comment

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

this is dangerous, if you have another attribute on the same line, for instance the id before, it won't work. you need to keep the search on uri="

if it has not break it worth adding a test for this case (or at least to raise an issue to add it)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think you are right. I am starting to search in the line at the position of the URI attribute which will most likely be followed by ="value".

Copy link
Member

Choose a reason for hiding this comment

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

my bad, you're right

@lhein
Copy link
Collaborator Author

lhein commented Aug 6, 2018

created #129 to handle global endpoints in Java DSL

@lhein lhein force-pushed the globalEndpointSupport_121 branch from e602206 to d76c821 Compare August 6, 2018 12:26
@lhein
Copy link
Collaborator Author

lhein commented Aug 6, 2018

@apupier this one has to be merged first

Copy link
Member

@apupier apupier left a comment

Choose a reason for hiding this comment

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

the list containing the "endpoint" needs to be splitted between Java and xml

@lhein
Copy link
Collaborator Author

lhein commented Aug 6, 2018

@apupier
Copy link
Member

apupier commented Aug 6, 2018

@lhein
Copy link
Collaborator Author

lhein commented Aug 8, 2018

reported it

@lhein
Copy link
Collaborator Author

lhein commented Aug 8, 2018

merged as part of #124

@lhein lhein closed this Aug 8, 2018
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.

2 participants