Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

[#446] Adds first_name, last_name, created_at to FidesopsUser response #465

Merged
merged 4 commits into from
May 5, 2022

Conversation

seanpreston
Copy link
Contributor

Purpose

The frontend requires these fields for interface display purposes.

Copy link
Contributor

@TheAndrewJackson TheAndrewJackson left a comment

Choose a reason for hiding this comment

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

It looks like black was ran against the test files. I like this but it does make the diffs a little noisy. It might be good to add the tests/ directly to our black CI so future PRs have consistent test formatting

response_body = json.loads(response.text)
assert HTTP_201_CREATED == response.status_code
assert response_body == {"id": user.id}
assert user.permissions is not None
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be good to also assert that the users first_name and last_name are what they were set to when it was created. There are test cases below that check those fields so it is tested indirectly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've worked out why that's happening. We're explicitly running black /src in the Makefile. Will follow-up this change as part of a subsequent hotfix.

@seanpreston seanpreston merged commit d576434 into main May 5, 2022
@seanpreston seanpreston deleted the 446-user-data branch May 5, 2022 16:00
@TheAndrewJackson TheAndrewJackson mentioned this pull request May 6, 2022
6 tasks
adamsachs pushed a commit to adamsachs/fidesops_forked_test that referenced this pull request May 17, 2022
…sUser` response (ethyca#465)

* add fixture for user, add first_name and last_name to FidesopsUser, add fields to response

* run autoformatter on migrations

* make username unique, rename fixture

* test multiple user get endpoint
sanders41 pushed a commit that referenced this pull request Sep 22, 2022
… response (#465)

* add fixture for user, add first_name and last_name to FidesopsUser, add fields to response

* run autoformatter on migrations

* make username unique, rename fixture

* test multiple user get endpoint
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants