Skip to content

Conversation

@timAmida
Copy link
Contributor

@timAmida timAmida commented Jan 5, 2023

Related Tickets

Other Repos' PR(s) Intended to Work With This PR

  • "None."

How Things Worked (or Didn't) Before This PR

  • User Profile Interface did not exist

How Things Work Now (And How to Test)

-User Profile is editable.
-User is allowed to change only their settings. (for certain selections)
-User unable to change company settings.
-Admin route added for adding new user, and also finding members.

Readiness

  1. This PR passes all automated tests.
  2. This PR has no linting errors.
  3. This PR's changes to configuration files have been documented in all appropriate places (such as but not limited to README.md), if applicable.

Copy link
Contributor

@m-ox m-ox left a comment

Choose a reason for hiding this comment

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

I'm personally excited about it. Just needs merge conflicts and basic console log clean up done. Has thorough error handling and I'm happy to finally see what the user object is looking like.

redirect_uri: googleOAuthRedirectUrl,
grant_type: 'authorization_code',
};
console.log(values);
Copy link
Contributor

Choose a reason for hiding this comment

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

console.log clean up

Copy link
Collaborator

Choose a reason for hiding this comment

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

And below this, comment clean up

{
"_id": "aab",
"aab": {
"measureClassification": "Classic",
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 going to be used anywhere? And all the values appear to be the same. Just curious what this is for.

};

const addUser = async (req, res, next) => {
const {
Copy link
Collaborator

Choose a reason for hiding this comment

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

About 50% of this file is copying the same 12 fields around 3 different places. I bet a function can handle this to reduce duplicate code.

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.

3 participants