-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
Deploy history report #28133
Deploy history report #28133
Conversation
(currently not implemented by Django)
[ci skip]
Use ES aliases instead of index names in queries
[ci skip]
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.
Couple minor quibbles, but looks great overall!
corehq/apps/hqadmin/reports.py
Outdated
|
||
@cached_property | ||
def _user_lookup_url(self): | ||
return reverse('web_deploy_lookup') |
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 method doesn't apply to this class - guessing it was copied over from the User List report.
corehq/apps/hqadmin/reports.py
Outdated
def _format_date(self, date): | ||
if date: | ||
raw_time_since_deploy = dt.now() - date | ||
delta_dict = self._strfdelta(raw_time_since_deploy) |
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 like this is a reimplementation of the naturaltime
template filter. You can actually just call that directly as is done here:
commcare-hq/corehq/apps/export/views/list.py
Lines 316 to 317 in ef2fe26
'lastUpdated': naturaltime(last_updated), | |
'lastAccessed': naturaltime(last_accessed), |
corehq/apps/hqadmin/reports.py
Outdated
return relative_time_formatted | ||
|
||
def _hyperlink_diff_url(self, diff_url): | ||
return '<a href="{link}">Diff with previous</a>'.format(link=diff_url) |
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.
return '<a href="{link}">Diff with previous</a>'.format(link=diff_url) | |
return f'<a href="{diff_url}">Diff with previous</a>' |
Happily, HQ is on python 3, so you can use f-strings!
…ions, use f-strings
There are 367 errors:
|
Messed up a |
#27839
One feature of the above issue.
SUMMARY
Moved the Deploy History Report previously found on the 'System Info' admin page to its own standalone page. Part of a larger process of adding a commit field to the deploy history as explained in the above issue.
PRODUCT DESCRIPTION
Users will now be able to access the 'deploy history report' on its own standalone page.