-
Notifications
You must be signed in to change notification settings - Fork 0
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
task/WP-109-remove-unused-django-fields #887
Changes from 1 commit
ad63630
baa2ab4
8f8c30c
bc205f1
89c4b29
5dee19a
1c30780
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,12 +21,12 @@ const dummyState = { | |
}, | ||
data: { | ||
demographics: { | ||
ethnicity: 'Asian', | ||
gender: 'Male', | ||
bio: '', | ||
website: 'http://owais.io', | ||
orcid_id: 'test', | ||
professional_level: 'Staff (support, administration, etc)', | ||
// ethnicity: 'Asian', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here, delete this unused code There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good question, I believe those values (on https://accounts.tacc.utexas.edu/profile) are different than the values that we're deleting on the backend. I say this because when I look at the api response on https://cep.test/accounts/api/profile/data/, those values are either empty strings or null for my profile, whereas on https://accounts.tacc.utexas.edu/profile, they are filled out. So my guess is this is separate from the PortalProfile data. |
||
// gender: 'Male', | ||
// bio: '', | ||
// website: 'http://owais.io', | ||
// orcid_id: 'test', | ||
// professional_level: 'Staff (support, administration, etc)', | ||
username: 'ojamil', | ||
email: 'ojamil@tacc.utexas.edu', | ||
firstName: 'Owais', | ||
|
@@ -77,8 +77,8 @@ describe('Profile Information Component', () => { | |
'Institution', | ||
'Country of Residence', | ||
'Country of Citizenship', | ||
'Ethnicity', | ||
'Gender', | ||
// 'Ethnicity', | ||
// 'Gender', | ||
]; | ||
headings.forEach((heading) => { | ||
expect(getByText(heading)).toBeInTheDocument(); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,8 +32,8 @@ class Migration(migrations.Migration): | |
name='PortalProfile', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('ethnicity', models.CharField(max_length=255)), | ||
('gender', models.CharField(max_length=255)), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We want to keep old migrations unaltered, and rather all our future changes can be handled by additional migrations |
||
# ('ethnicity', models.CharField(max_length=255)), | ||
# ('gender', models.CharField(max_length=255)), | ||
('setup_complete', models.BooleanField(default=False)), | ||
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)), | ||
], | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we remove these instead of commenting them oout