You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the admin, modify an API backend so there are pending changes to publish.
Head to the Publish Changes screen.
Make sure none of the checkboxes are checked (no checkboxes will be checked by default if you have multiple pending changes, but if there's just a single pending change, it will be checked by default).
Hit the big "Publish" button.
You'll get this unfriendly error that doesn't really explain things:
This only happens if you haven't checked any checkboxes, so it's usually pretty easy to catch, but the error should explain what's going on and maybe prevent the publish button from even being active until you check something.
This scenario also triggers an uncaught exception on the backend publish API (Pundit::AuthorizationNotPerformedError) that would be good to cleanup.
The text was updated successfully, but these errors were encountered:
Hitting the publish API without any selected changes now performs no
action. The publish button is also now disabled in the UI until the user
checks at least one checkbox.
See 18F/api.data.gov#307
This has been fixed (NREL/api-umbrella@f0b9315) and pushed live. The publish button is no longer clickable until you check at least one item. The underlying API also no longer errors out if no items are selected for publishing.
This only happens if you haven't checked any checkboxes, so it's usually pretty easy to catch, but the error should explain what's going on and maybe prevent the publish button from even being active until you check something.
This scenario also triggers an uncaught exception on the backend publish API (
Pundit::AuthorizationNotPerformedError
) that would be good to cleanup.The text was updated successfully, but these errors were encountered: