zulip/frontend_tests
Steve Howell 1ae07b93d8 presence: Simplify payload for webapp.
This changes the payload that is used
to populate `page_params` for the webapp,
as well as responses to the once-every-50-seconds
presence pings.

Now our dictionary of users only has these
two fields in the value:

    - activity_timestamp
    - idle_timestamp

Example data:

    {
        6: Object { idle_timestamp: 1585746028 },
        7: Object { active_timestamp: 1585745774 },
        8: Object { active_timestamp: 1585745578,
                    idle_timestamp: 1585745400}
    }

We only send the slimmer type of payload
to clients that have set `slim_presence`
to True.

Note that this commit does not change the format
of the event data, which still looks like this:

    {
        website: {
            client: 'website',
            pushable: false,
            status: 'active',
            timestamp: 1585745225
        }
    }
2020-04-03 11:44:56 -07:00
..
casper_lib CVE-2020-9444: Prevent reverse tabnabbing attacks. 2020-04-01 14:01:45 -07:00
casper_tests capser: Extract wait_for_text(). 2020-03-31 10:57:08 -04:00
node_tests presence: Simplify payload for webapp. 2020-04-03 11:44:56 -07:00
puppeteer_tests tests: Add realm creation test using puppeteer. 2020-04-02 15:37:12 -07:00
zjsunit node tests: Auto-include zblueslip for node tests. 2020-04-03 12:56:49 -04:00
.eslintrc.json lint: Check eslint indentation for casper tests. 2018-05-06 19:35:18 -07:00
run-casper casper test: Refine --loop mode. 2020-03-31 10:57:08 -04:00