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

Divide COMS object search request to limit URL length #116

Merged
merged 3 commits into from
Aug 28, 2023
Merged

Conversation

TimCsaky
Copy link
Contributor

Description

ticket: https://apps.nrs.gov.bc.ca/int/jira/browse/SHOWCASE-3330

to load the objects table, if there are more than about 50 objects some browsers will show errors, because the COMS request url contains so many objectId's and is too long.

In object search service function, i have split into multiple requests, each time, passing an acceptable number of the objectId's

Types of changes

Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

@TimCsaky TimCsaky requested a review from jujaga as a code owner August 23, 2023 22:30
@github-actions
Copy link

Coverage Report (Application)

Totals Coverage
Statements: 75% ( 51 / 68 )
Methods: 62.5% ( 5 / 8 )
Lines: 82.61% ( 38 / 46 )
Branches: 57.14% ( 8 / 14 )

@github-actions
Copy link

github-actions bot commented Aug 28, 2023

Coverage Report (Frontend)

Totals Coverage
Statements: 36.91% ( 447 / 1211 )
Methods: 37.92% ( 102 / 269 )
Lines: 43.56% ( 308 / 707 )
Branches: 15.74% ( 37 / 235 )

frontend/tests/unit/store/objectStore.spec.ts Outdated Show resolved Hide resolved
frontend/src/services/objectService.ts Outdated Show resolved Hide resolved
frontend/src/services/objectService.ts Outdated Show resolved Hide resolved
frontend/src/services/objectService.ts Outdated Show resolved Hide resolved
@jujaga jujaga added the bug Something isn't working label Aug 28, 2023
@jujaga jujaga merged commit 78214e6 into master Aug 28, 2023
14 checks passed
@jujaga jujaga deleted the bug/limit-url branch August 28, 2023 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants