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

commit fix on occurrenceId changing every form submit #1638 #262

Merged
merged 5 commits into from
Oct 14, 2024

Conversation

salomon-j
Copy link
Contributor

No description provided.

@temi
Copy link
Contributor

temi commented Oct 10, 2024

LGTM. Add unit test cases to cover the following scenarios.

  1. When outputSpeciesId is passed and species name has not changed, the same outputSpeciesId returned by toJS method.
  2. If species name has changed, outputSpeciesId is different from the original outputSpeciesId.


it("New outputSpeciesId is passed when the species has changed", function (){
let data = {
outputSpeciesId: "",
Copy link
Contributor

Choose a reason for hiding this comment

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

assign a value

return d.promise();
});

let speciesViewModel = new SpeciesViewModel({}, options, {});
Copy link
Contributor

Choose a reason for hiding this comment

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

Pass species data here and change species selection by filling transients(.name, .scientificName, .commonName & .guid) such that it will trigger ajax call when name changes. Happy to chat if it is not clear.

@temi temi merged commit 99e8e08 into dev Oct 14, 2024
1 check passed
@temi temi deleted the feature/issue1638 branch October 14, 2024 03:08
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