tethysplatform / tethys

The Tethys Platform main Django website project repository.
http://tethysplatform.org/
BSD 2-Clause "Simplified" License
94 stars 51 forks source link

[FEATURE] Setting to allow job table status updates for anonymous users #1115

Open swainn opened 2 days ago

swainn commented 2 days ago

Is your feature request related to a problem? Please describe. The job table in an app with open portal mode enabled doesn't update b/c the update status API is protected by a login required decorator. For example, update_row:

https://github.com/tethysplatform/tethys/blob/c24902ef180a7a74196d06546b752f0c341d6051/tethys_gizmos/views/gizmos/jobs_table.py#L236

Describe the solution you'd like Honor open-portal mode setting or provide another setting to allow retrieval of jobs status without being logged in.

swainn commented 2 days ago

Options:

  1. Remove the async_login_required on status/read-only endpoints
  2. Create an async version of the Tethys login_required which honors open portal mode.