-
Notifications
You must be signed in to change notification settings - Fork 19
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
Issue #2975 - domain and domain info portfolio fields -[HOTGOV] #3044
Issue #2975 - domain and domain info portfolio fields -[HOTGOV] #3044
Conversation
🥳 Successfully deployed to developer sandbox nl. |
…main-info-portfolio-fields
🥳 Successfully deployed to developer sandbox nl. |
🥳 Successfully deployed to developer sandbox nl. |
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.
See comments for changes requested and comments. Also I was only running this locally and already noticing a significant slowdown in performance. Can you please put this on a sandbox so we can see if the slow down is just a local oriented thing? If you want to use mine you can.
🥳 Successfully deployed to developer sandbox nl. |
🥳 Successfully deployed to developer sandbox nl. |
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.
The custom fields don't appear to be sortable on the domain request or domain information tables, though they appear to be working on domains directly
src/registrar/utility/csv_export.py
Outdated
@@ -262,6 +243,25 @@ def get_annotated_queryset(cls, **kwargs): | |||
@classmethod | |||
def get_model_annotation_dict(cls, **kwargs): | |||
return convert_queryset_to_dict(cls.get_annotated_queryset(**kwargs), is_model=False) | |||
|
|||
@classmethod | |||
def export_data_to_csv(cls, csv_file, **kwargs): |
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.
(optional / nitpick) mind moving this back to line 216?
🥳 Successfully deployed to developer sandbox nl. |
…main-info-portfolio-fields
🥳 Successfully deployed to developer sandbox nl. |
1 similar comment
🥳 Successfully deployed to developer sandbox nl. |
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.
See comments, but should be good to merge otherwise. I do recommend a second pair of eyes on this one but up to you on that.
There is a performance slowdown on/admin I think associated with the lookups (for loops), but at least locally/sandboxes it seemed okay. That said, I think we should tackle that in a follow-on as this ticket has already gone through a few iterations of that
if self.portfolio: | ||
return self.portfolio.federal_agency | ||
return self.federal_agency | ||
return self.portfolio.federal_agency.agency |
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.
(nitpick) shouldn't we check on self.portfolio and self.portfolio.federal_agency?
"adomain10.gov,Ready,2024-04-03,(blank),Federal,Armed Forces Retirement Home,,,,(blank),,,," | ||
"adomain10.gov,Ready,2024-04-03,(blank),Federal,Armed Forces Retirement Home,,,, ,,(blank),," |
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.
It seems like a errant space is being added here, for some reason and on the other tests (see just before (blank))
"adomain2.gov,Dns needed,(blank),(blank),Federal - Executive," | ||
"Portfolio 1 Federal Agency,,,, ,,(blank)," |
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.
this was originally: "adomain2.gov,Dns needed,(blank),(blank),Interstate,,,,,(blank),,,"
It seems like the agency type changed from interstate to federal - executive. Is this expected?
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.
Yes, I editted the data to make it clear when we are pulling from portfolio data or not. adomain2 is affected across all these tests
…main-info-portfolio-fields
comments addressed and subsequent reviews have been made
🥳 Successfully deployed to developer sandbox nl. |
1 similar comment
🥳 Successfully deployed to developer sandbox nl. |
🥳 Successfully deployed to developer sandbox nl. |
Ticket 2975
Resolves #2975
Changes
Context for reviewers
Setup
Code Review Verification Steps
Go to /admin and verify that the following csv exports use converted fields instead of the native data for Domains, Domain Requests, and Domain Info;
Also verify that the analytics displays use converted fields.
As the original developer, I have
Satisfied acceptance criteria and met development standards
Ensured code standards are met (Original Developer)
Validated user-facing changes (if applicable)
As a code reviewer, I have
Reviewed, tested, and left feedback about the changes
Validated user-facing changes as a developer
Note: Multiple code reviewers can share the checklists above, a second reviewer should not make a duplicate checklist. All checks should be checked before approving, even those labeled N/A.
As a designer reviewer, I have
Verified that the changes match the design intention
Validated user-facing changes as a designer
References
Screenshots