Closed Bug 1787966 Opened 3 years ago Closed 3 years ago

Refactor duplicate fields for the user's last activity in /rest/user endpoint

Categories

(bugzilla.mozilla.org :: API, task)

Tracking

()

RESOLVED FIXED

People

(Reporter: suhaib, Assigned: dkl)

References

Details

Attachments

(1 file)

I found that there are duplicate fields for the user's last activity:

The last_activity field has the same situation as in bug 1787954 where it does not show up if you request the field without including the id field (e.g., include_fields=last_activity). However, if you request the id field alone (e.g., include_fields=id), the last_activity field will always show up (without even including it).

If we do not want to drop the last_activity to maintain backward compatibility. I think we could drop the last_activity implementation in Bugzilla::Extension::UserProfile and make last_activity as an alias to last_activity_time.

No longer depends on: 1787954
See Also: → 1787954

There is definitely a duplication here and will fix. The ids issue will be resolved by bug 1787954.

Assignee: nobody → dkl
Status: NEW → ASSIGNED
Attached file GitHub Pull Request
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: