Goal
This task is to fetch the data on the backend to be displayed in the initial load of the Compare tab in CU 2.0.
Data to be fetched
- For an input username:
- IP addresses they have used
- FYI note that this is limited to the past 90 days by our data policy limits so we won't find anything from before that
- Count of number of edits made from the given IP + UA by the user
- Count of number of other users using that IP
- Count of number of edits made by other users from that IP
- We use the above to display information like - 44 edits from 15 other users
- User agent behind the edit
- Different UA creates a different record as it indicates a different device.
- Activity time period from that IP + UA (timestamp of first and last edit from that IP and that user agent)
- IP addresses they have used
- For an input IP address:
- Usernames editing from that IP address
- Like above, we won't get any data beyond 90 days
- User agent behind the edit
- Different UA creates a different record as it indicates a different device.
- Activity time period from that IP + UA (timestamp of first and last edit from that IP and that user agent)
- Count of number of edits made by the given user from that IP + UA
- For unregistered users, we'll have a new record for every unique UA
- Count of number of edits for each unregistered user from the unique UA
- Activity time period from that unregistered user from that IP+UA
- Usernames editing from that IP address
Example
Username | Activity | IP | User-agent |
Apples | August 12, 11:00 - September 13, 10:00 | 1.2.3.4 - 17 edits (10 from 3 other users) | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15 |
Apples | August 16, 13:00 - September 1, 8:00 | 1.5.6.4 - 3 edits (1560 from 35 other users) | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15 |
Bananas | August 12, 11:00 - September 13, 10:00 | 1.2.3.4 - 18 edits (10 from 3 other users) | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15 |
Bananas | August 16, 13:00 - September 1, 8:00 | 1.5.6.4 - 45 edits (1560 from 35 other users) | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15 |
Grapes | August 12, 11:00 - September 13, 10:00 | 1.5.6.7 - 70 edits | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15 |
Unregistered | August 16, 13:00 - September 1, 8:00 | 1.5.6.7 - 123 edits | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15 |
Pineapples | August 12, 11:00 - September 13, 10:00 | 1.9.8.4 - 25 edits | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15 |
Unregistered | August 16, 13:00 - September 1, 8:00 | 1.9.8.4 - 76 edits | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15 |