• Robert Knight's avatar
    Hide the "Public" group from the client under certain conditions · a4ed4a72
    Robert Knight authored
    Implement a business requirement that the "Public" group should be
    hidden from the groups list if all these conditions are met:
    
     - The user is logged-out
     - The current document has groups associated with it
     - The user has not visited a direct-link to an annotation in "Public"
    
    ---
    
    This requirement introduces a complexity in that deciding which group to
    focus and fetch annotations for after initially fetching groups now
    depends on the current profile. However the profile and groups are
    fetched concurrently to reduce the number of API round-trips before we
    can show annotations in the client.
    
    Fortunately we don't need to know the exact userid to know which group
    to focus, only whether the list of groups was fetched as a logged-in
    user or not. This can be determined from the access token that was sent
    with the `/api/groups` request.
    a4ed4a72
Name
Last commit
Last update
.github Loading commit data...
docs Loading commit data...
images Loading commit data...
scripts Loading commit data...
src Loading commit data...
.babelrc Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.npmrc Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CODE_OF_CONDUCT Loading commit data...
Jenkinsfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
package.json Loading commit data...
requirements-dev.in Loading commit data...
yarn.lock Loading commit data...