Sitelet https://github.com/masvis/angular4-hal/pull/70
Skip to content

Pagination Fix - #70

Merged
sante85 merged 2 commits into
masvis:8.xfrom
isaaclcl:master
Jul 9, 2019
Merged

sante85 merged 2 commits into
masvis:8.xfrom
isaaclcl:master

Conversation

@isaaclcl

@isaaclcl isaaclcl commented Jul 2, 2019

Copy link
Copy Markdown

The replaces of self_uri were using static strings.
If the endpoints has no projections or when the sel_uri is a search result, the replace fail and generate a invalid uri.
To fix that I changed the replaces to use regex.

I also fix the uri parameters replace to properly work when the target parameter is the last parameter on the uri.

Examples of uris: this.self_uri = this.self_uri.replace('{?page,size,sort,projection}', '');
"https://localhost:8080/entity{?page,size,sort}"
"https://localhost:8080/entity/search/findByName{?name}"

@isaaclcl isaaclcl changed the title Fix pagination Pagination Fix Jul 2, 2019
@sante85
sante85 merged commit aadc3e7 into masvis:8.x Jul 9, 2019
@isaaclcl

Copy link
Copy Markdown
Author

Is there an estimate of when this change will be merged into the master branch?

@sante85

sante85 commented Jul 30, 2019 via email

Copy link
Copy Markdown
Collaborator

@isaaclcl

isaaclcl commented Sep 2, 2019

Copy link
Copy Markdown
Author

Any news about the merge?

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