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

modified condition for returning training data #6288

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

Jonopono123
Copy link
Collaborator

Work done

  • Made change to workerTrainingCategories to ignore mandatory training flags when returning data

Tests

Does this PR include tests for the changes introduced?

  • Yes
  • No, I found it difficult to test
  • No, they are not required for this change

Copy link
Collaborator

@duncanc19 duncanc19 left a comment

Choose a reason for hiding this comment

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

Is the isMandatory functionality definitely not used anywhere?
The PR is pointing to test at the moment

Copy link

codeclimate bot commented Jul 3, 2024

Code Climate has analyzed commit 3db0746 and detected 0 issues on this pull request.

View more on Code Climate.

@Jonopono123 Jonopono123 changed the base branch from test to main July 3, 2024 10:52
@@ -80,5 +82,30 @@ module.exports = function (sequelize, DataTypes) {
});
};

MandatoryTraining.getWorkersWithMandatoryTraining = async function(establishmentId, trainingCategoryId) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this function being used anywhere?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, I thought I'd removed this - good catch.

@@ -1,3 +1,5 @@
const { QueryTypes } = require("sequelize");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Guessing you can remove this too?

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