-
Notifications
You must be signed in to change notification settings - Fork 10
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
EREGCSC-2113 -- Reflect edited statute dates in frontend #929
Conversation
✨ See the Django Site in action ✨ |
✨ See the Django Site in action ✨ |
✨ See the Django Site in action ✨ |
✨ See the Django Site in action ✨ |
✨ See the Django Site in action ✨ |
✨ See the Django Site in action ✨ |
'type': site_config.ssa_gov_compilation_date_type, | ||
'date': site_config.ssa_gov_compilation_date, | ||
}, | ||
} |
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.
Emulated the pattern used in reader.py
view to bring in site config values to use in template
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.
Not really a fan of this implementation of a singleton model. We are querying SiteConfiguration and storing into site_config. Then we are redefining site_config with the values of site_config and storing it into an object that has 4 fields that have identical properties. This could easily just be a queryset of 4 objects that already have these defined properties.
✨ See the Django Site in action ✨ |
...ations/eregs-component-lib/src/components/shared-components/Statutes/schemas/tableSchemas.js
Show resolved
Hide resolved
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 looks good. Just left notes here for discussion as a team. LGTM
✨ See the Django Site in action ✨ |
✨ See the Django Site in action ✨ |
Resolves EREGCSC-2113
Description:
Pulls dates from site configuration in admin panel into front end for Statute Table column header labels.
This pull request changes:
Steps to manually verify this change: