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

RES-1911 Some issues with item type suggestions #670

Merged
merged 7 commits into from
Aug 23, 2023
Merged

Conversation

edwh
Copy link
Collaborator

@edwh edwh commented Jul 17, 2023

The item type suggestion can return duplicates if the same item type value is used in different categories. Fix this, and add a test.

Although in the end it turned out unrelated, this also introduces a proof of concept Jest script.

  • Add jest with suitable config.
  • Move some code from app.js into a mixin so that it can be shared with the test.
  • Write a basic test DeviceWeight.test.js which just renders a simple component and checks that translation strings are expanded.
  • Run this on CircleCI.

This doesn't test the full stack of issuing an API call, but is a reasonable first step.

@edwh edwh requested a review from restart-neil July 17, 2023 10:39
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 7 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@edwh edwh merged commit 19f918f into develop Aug 23, 2023
@edwh edwh changed the title RES-1911 item types RES-1911 Some issues with item type suggestions Aug 23, 2023
@ngm ngm deleted the RES-1911_item_types branch June 19, 2024 16:21
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