Pairing Session - 2019-09-16 - Caleb / Cody
Title: Pairing Session - Date - Name 1 / Name 2
Boom! It's on. You and your pairing partner have 1 hour. Work together on tickets and log them here. Fill this out at the end of your session as a logbook so we can track our progression!
Tickets Worked On:
Post Call Notes:
Customer was receiving a 4
22 Unprocessable Entity error when attempting to reset their group's runner registration token. The following was found within the `production.log:
Completed 422 Unprocessable Entity in 209ms (ActiveRecord: 162.6ms | Elasticsearch: 0.0ms) ActiveRecord::RecordInvalid (Validation failed: Visibility level private is not allowed since this group contains projects with higher visibility.): app/models/concerns/token_authenticatable_strategies/base.rb:39:in `reset_token!' app/models/concerns/token_authenticatable.rb:50:in `block in add_authentication_token_field' app/controllers/groups/settings/ci_cd_controller.rb:14:in `reset_registration_token'
Configured a private group and private project within said group, then verified that the projects level cannot be set to anything higher than private if the group is configured to be private. Setting the
project_visibility level to public manually via the DB console allowed us to replicate the issue:
UPDATE projects SET visibility_level = '20' WHERE id ='PROJECT_ID_HERE';
Once the project's
visibility_level is broken, you CAN set the value back to private via the web GUI. Cody provided the customer a script that will automatically set any project within a private group to a private visibility level (if it isn't already).