Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Automatic publication of admins' resource suggestions #11

Open
@textbook

Description

@textbook

Currently, if an admin user wants to publish a new resource they have to suggest it on the /suggest page and then publish it on the /drafts page. Given that they have sufficient permissions to publish the resource, it would be more efficient if their resource was published as soon as they suggest it.

User story

As an admin user
I want my resource suggestions to be automatically published
So that I don't have to do two steps to publish a new resource

Acceptance criteria

Admin user

  1. Scenario: accurate information in UI
    • Given that I'm logged in as an admin user
    • When I visit the /suggest page
    • Then it does not tell me "...it will not appear on the home page immediately..."
  2. Scenario: automatic publication
    • Given that I'm logged in as an admin user
    • When I suggest a resource via the /suggest page
    • Then it is immediately shown on the home page
    • And not on the drafts page

Non-admin user

  1. Scenario: accurate information in UI
    • Given that I'm logged in as a non-admin user
    • When I visit the /suggest page
    • Then it still tells me "...it will not appear on the home page immediately..."
  2. Scenario: manual publication
    • Given that I'm logged in as a non-admin user
    • When I suggest a resource via the /suggest page
    • Then it is not immediately shown on the home page
    • And an admin user can see it on the drafts page

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions