(rowStatus apiv2pb.RowStatus)
| 19 | } |
| 20 | |
| 21 | func convertRowStatusToStore(rowStatus apiv2pb.RowStatus) store.RowStatus { |
| 22 | switch rowStatus { |
| 23 | case apiv2pb.RowStatus_ACTIVE: |
| 24 | return store.Normal |
| 25 | case apiv2pb.RowStatus_ARCHIVED: |
| 26 | return store.Archived |
| 27 | default: |
| 28 | return store.Normal |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | func getCurrentUser(ctx context.Context, s *store.Store) (*store.User, error) { |
| 33 | username, ok := ctx.Value(usernameContextKey).(string) |