-
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
#2852: property to portfolio related fields - [AD] #3005
Conversation
… hotgov/2852-property-to-portfolio-related-fields
🥳 Successfully deployed to developer sandbox ad. |
… ad/2852-property-to-portfolio-related-fields
🥳 Successfully deployed to developer sandbox ad. |
🥳 Successfully deployed to developer sandbox ad. |
🥳 Successfully deployed to developer sandbox ad. |
🥳 Successfully deployed to developer sandbox ad. |
🥳 Successfully deployed to developer sandbox ad. |
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.
Blocking:
The admin table filters (for generic_org_type) has not been updated. If we are not doing this as part of this ticket, let me know and I can approve. @abroddrick (tagging for verification)
(Maybe) Blocking:
Also, do we want the column headers to include "converted" in the title? Or should we keep them the same as before, even though we are pulling from portfolio.
src/registrar/admin.py
Outdated
@@ -1852,7 +1876,7 @@ def status_history(self, obj): | |||
|
|||
# Read only that we'll leverage for CISA Analysts | |||
analyst_readonly_fields = [ | |||
"federal_agency", | |||
"converted_federal_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.
From my understanding, we are stripping out all the ACs involving change forms. Revert to federal_agency.
… ad/2852-property-to-portfolio-related-fields
🥳 Successfully deployed to developer sandbox ad. |
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.
A couple minor changes still.
src/registrar/admin.py
Outdated
class GenericOrgFilter(admin.SimpleListFilter): | ||
"""Custom Generic Organization filter that accomodates portfolio feature. | ||
If we have a portfolio, use the portfolio's organization. If not, use the | ||
organization in the Domain Information object.""" |
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.
Update this comment to "Domain Request" object
"custom_election_board", | ||
"city", | ||
"state_territory", | ||
"converted_generic_org_type", |
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.
I still don't see updates for the column headers. Did we decide against it?
@admin.display(description=_("State/Territory")) | ||
def converted_state_territory(self, obj): | ||
return obj.converted_state_territory | ||
|
||
# Columns |
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.
@CocoByte these are the admin.display methods.
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.
Ok, LGTM
🥳 Successfully deployed to developer sandbox ad. |
Ticket
Resolves #2852
Changes
Added @Property methods to DomainRequest model for the following fields:
Changes to the domain request admin table
Context for reviewers
Setup
Code Review Verification Steps
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