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

Added Some Question Templates #182

Merged
merged 5 commits into from
Apr 21, 2024
Merged

Added Some Question Templates #182

merged 5 commits into from
Apr 21, 2024

Conversation

Raulms29
Copy link
Contributor

No description provided.

It was possible to obtain a question which had 2 answers that were the same, but one of them was labeled as incorrect, That is no longer possible
@Raulms29 Raulms29 self-assigned this Apr 21, 2024
@Raulms29 Raulms29 added the enhancement New feature or request label Apr 21, 2024
Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: FAILED

  • Declining Code Health: 1 findings(s) 🚩

  • Affected Hotspots: 1 files(s) 🔥

View detailed results in CodeScene

wikidataResponse,
randomIndexes
);
let answersArray: object[] = [];

Choose a reason for hiding this comment

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

ℹ Getting worse: Primitive Obsession
The ratio of primitive types in function arguments increases from 46.43% to 46.67%, threshold = 30.0%

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

  • Affected Hotspots: 1 files(s) 🔥

View detailed results in CodeScene

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

  • Affected Hotspots: 1 files(s) 🔥

View detailed results in CodeScene

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

  • Affected Hotspots: 1 files(s) 🔥

View detailed results in CodeScene

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

  • Affected Hotspots: 2 files(s) 🔥

View detailed results in CodeScene

@@ -172,6 +172,21 @@ describe("Question Service - Question Generator", () => {
checkAllFieldsWithoutImage(response);
})

it("should return 1 question with all correct when there are repeated answers", async () => {

Choose a reason for hiding this comment

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

ℹ Getting worse: Code Duplication
introduced similar code in: "should return 1 question with all correct when there are repeated answers",mockWikidataSparqlRepeated

Copy link

Copy link
Contributor

@didierrc didierrc left a comment

Choose a reason for hiding this comment

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

Good addition of CodeScene seen on Seminar classes and also, question templates!

@didierrc didierrc merged commit fe73622 into question-types Apr 21, 2024
4 checks passed
@Raulms29 Raulms29 deleted the question-templates branch April 28, 2024 15:09
@Raulms29 Raulms29 mentioned this pull request Apr 30, 2024
@didierrc didierrc mentioned this pull request Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants