Open pdpinch opened 1 year ago
It looks like "OCW Studio Bot" was made the default for "anonymous commits" in this PR: https://github.com/mitodl/salt-ops/pull/1523, in response to this issue: https://github.com/mitodl/ocw-studio/issues/1269.
Thanks for the context, but I don't see why these commits that add resources should be "anonymous" since there is a logged in user who clicks the "sync w/Google drive" button.
That is indeed surprising. Here is the relevant code that checks whether the user is anonymous: https://github.com/mitodl/ocw-studio/blob/c74cc6ff031d9913a0672d16db45ec5b1bba4880/content_sync/apis/github.py#L422-L435
In production, features.is_enabled(features.GIT_ANONYMOUS_COMMITS)
is False
. However, the default user is Anonymous: https://github.com/mitodl/ocw-studio/blob/c74cc6ff031d9913a0672d16db45ec5b1bba4880/main/settings.py#L934-L945 Not sure why the logged-in user information is not getting passed through.
Steps to Reproduce
Expected Behavior
Actual Behavior
Screenshot or Screencast