Fix history label creation for anonymous users (#20200)

* Remove decaffeination artifacts in LabelsTests

* Remove decaffeination artifacts in LabelsManagerTests

* Fix label creation for anonymous users

* Update label creation route in MockProjectHistoryApi tests

* Support both endpoints for backwards compatibility

GitOrigin-RevId: 50ce1ba49388e50f147fb620e0425fea83301c9d
This commit is contained in:
Miguel Serrano
2024-10-14 10:57:33 +00:00
committed by Copybot
parent 3ff142d478
commit cd6631c105
9 changed files with 170 additions and 131 deletions
@@ -412,13 +412,13 @@ describe('HttpController', function () {
this.req = {
params: {
project_id: this.projectId,
user_id: this.userId,
},
body: {
version: (this.version = 'label-1'),
comment: (this.comment = 'a comment'),
created_at: (this.created_at = Date.now().toString()),
validate_exists: true,
user_id: this.userId,
},
}
this.label = { _id: new ObjectId() }