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

Feature/8 crud group table #18

Merged
merged 9 commits into from
Nov 15, 2024
Merged

Conversation

NiteshSoma
Copy link
Contributor

No description provided.

@NiteshSoma NiteshSoma linked an issue Nov 15, 2024 that may be closed by this pull request
package.json Outdated
@@ -26,6 +26,7 @@
},
"dependencies": {
"@hono/zod-openapi": "^0.17.0",
"@node-rs/argon2": "^2.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

This dependency is no more required and was removed in a previous MR, please take the latest pull from main.

}

let group: TSelectGroupSchema | null = null;
group = await createGroupRepository(payload);
Copy link
Contributor

Choose a reason for hiding this comment

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

You could directly do const group = await createGroupRepository(payload);

}

let deletedGroupId: string | null = null;
deletedGroupId = await deleteGroupRepository(params.id);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same previous comment applies.

Copy link
Contributor

@shivamvijaywargi shivamvijaywargi left a comment

Choose a reason for hiding this comment

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

Please look at the suggested changes

Copy link
Contributor

@shivamvijaywargi shivamvijaywargi left a comment

Choose a reason for hiding this comment

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

We will implement activity log later, for now change the logger to error in 1 place.

const group: TSelectGroupSchema | null = await createGroupRepository(payload);

if (!group) {
logger.debug("Failed to create group");
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be an error log, logger.error()

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
9.6% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Copy link
Contributor

@shivamvijaywargi shivamvijaywargi left a comment

Choose a reason for hiding this comment

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

Good work

@shivamvijaywargi shivamvijaywargi merged commit dd77612 into main Nov 15, 2024
3 of 4 checks passed
@shivamvijaywargi shivamvijaywargi deleted the feature/8-crud-group-table branch November 17, 2024 10:46
@shivamvijaywargi shivamvijaywargi added this to the Implement CRUD for category and group milestone Nov 17, 2024
@shivamvijaywargi shivamvijaywargi modified the milestones: Implement CRUD for category and group, V1.0 Nov 27, 2024
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.

CRUD group table
2 participants