Show a page banner message for course page redirects

Description

Acceptance Criteria

Technical Details

  • use cases

    • before start date learner is redirected to dashboard

    • show message on course pages when user not enrolled

  • can we improve the messages

    • should have the course name, for example

    • is there ever a case where we don't want to show a temporary/unannounced course name

  • have a generic place to handle redirects

    • get the access error object

    • record a message

    • return the redirect

  • decide when to redirect to home vs dashboard

    • if user can't self enroll, should redirect to dashboard

    • if it is before start date and pre-start-access flag is off, redirect to dashboard

    • if it is before enrollment date, throw a 404?

    • for a enrolled-only page (e.g. Progress), redirect to home if not enrolled

  • every one of these should record a message

  • have a generic handler that knows what message and where to redirect

  • need a clean way to handle access control

    • some access states require a redirect

    • some require a message but can render limited version of page

    • some provide full access with (possibly) no message

    • don't want to duplicate logic in has_access and page rendering

    • ideally has_access gives the page all the information it needs

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Status

Assignee

Marco Morales

Reporter

Andy Armstrong

Labels

None

Reach

None

Impact

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Category of Work

None

Stakeholders

None

Components

Priority

Unset
Configure