Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turnoff cc versioning #347

Merged
merged 16 commits into from
Aug 9, 2024
Merged

Turnoff cc versioning #347

merged 16 commits into from
Aug 9, 2024

Conversation

sinatragianpaolo
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Aug 7, 2024

Tests difference:

New Tests

< Not published - Should return all sentiments when values are greater than 0 and less than 6
< Not published - Should return all the questions
< Not published - Should return methodology
< Not published - Should return methodology description from ux data if exist
< Not published - Should return methodology name
< Not published - Should return methodology type
< Not published - Should return research goal
< Not published - Should return research usersNumber
< Not published - Should return the questions
< Not published - Should return the sentiments if exist the cluster
< Not published - Should return visible status
< PATCH /campaigns/{campaignId}/ux - if no data insert ux data - Should insert a question
< PATCH /campaigns/{campaignId}/ux - if no data insert ux data - Should insert a sentiment
< PATCH /campaigns/{campaignId}/ux - if no data insert ux data - Should insert data as version 1
< PATCH /campaigns/{campaignId}/ux - if no data insert ux data - Should insert goal
< PATCH /campaigns/{campaignId}/ux - if no data insert ux data - Should insert methodology description
< PATCH /campaigns/{campaignId}/ux - if no data insert ux data - Should insert methodology type
< PATCH /campaigns/{campaignId}/ux - if no data insert ux data - Should insert published data
< PATCH /campaigns/{campaignId}/ux - if no data insert ux data - Should insert unpublished data 
< PATCH /campaigns/{campaignId}/ux - if no data insert ux data - Should insert users
< PATCH /campaigns/{campaignId}/ux - if no data insert ux data - Should receive an error if miss goal
< PATCH /campaigns/{campaignId}/ux - if no data insert ux data - Should receive an error if miss users
< PATCH /campaigns/{campaignId}/ux - questions - Should add questions
< PATCH /campaigns/{campaignId}/ux - questions - Should not change questions if not send questions
< PATCH /campaigns/{campaignId}/ux - questions - Should remove questions if send empty array
< PATCH /campaigns/{campaignId}/ux - sentiments - Should add sentiments
< PATCH /campaigns/{campaignId}/ux - sentiments - Should not sentiments if not send sentiments
< PATCH /campaigns/{campaignId}/ux - sentiments - Should remove sentiments if send empty array
< PATCH /campaigns/{campaignId}/ux - update data - Should return 500 if send a sentiment value greater than 5 or lower then 1
< PATCH /campaigns/{campaignId}/ux - update data - Should update only goal
< PATCH /campaigns/{campaignId}/ux - update data - Should update only methodology description
< PATCH /campaigns/{campaignId}/ux - update data - Should update only methodology type
< PATCH /campaigns/{campaignId}/ux - update data - Should update only users number
< PATCH /campaigns/{campaignId}/ux - update data - Should update only visible status to publish =1 when send visible=1
< PATCH /campaigns/{campaignId}/ux - update data - Should update questions
< PATCH /campaigns/{campaignId}/ux - update data - Should update sentiments
< Published - Should return all sentiments when values are greater than 0 and less than 6
< Published - Should return all the questions
< Published - Should return methodology
< Published - Should return methodology description from ux data if exist
< Published - Should return methodology name
< Published - Should return methodology type
< Published - Should return research goal
< Published - Should return research usersNumber
< Published - Should return the questions
< Published - Should return the sentiments if exist the cluster
< Published - Should return visible status

Removed Tests

> GET /campaigns/{campaignId}/ux - data - Should return all the questions
> GET /campaigns/{campaignId}/ux - data - Should return all the sentiments
> GET /campaigns/{campaignId}/ux - data - Should return methodology
> GET /campaigns/{campaignId}/ux - data - Should return methodology description from ux data if exist
> GET /campaigns/{campaignId}/ux - data - Should return methodology name
> GET /campaigns/{campaignId}/ux - data - Should return methodology type
> GET /campaigns/{campaignId}/ux - data - Should return research goal
> GET /campaigns/{campaignId}/ux - data - Should return research usersNumber
> GET /campaigns/{campaignId}/ux - data - Should return sentiment value greater than 0 and less than 6
> GET /campaigns/{campaignId}/ux - data - Should return the questions
> GET /campaigns/{campaignId}/ux - data - Should return the sentiments
> GET /campaigns/{campaignId}/ux - draft - Should return methodology
> GET /campaigns/{campaignId}/ux - draft - Should return methodology description
> GET /campaigns/{campaignId}/ux - draft - Should return methodology goal
> GET /campaigns/{campaignId}/ux - draft - Should return methodology name
> GET /campaigns/{campaignId}/ux - draft - Should return methodology type
> GET /campaigns/{campaignId}/ux - draft - Should return methodology usersNumber
> GET /campaigns/{campaignId}/ux - draft - Should return status draft if there are no published campaign data
> GET /campaigns/{campaignId}/ux - draft modified - Should return status published if there are published campaign data and data are not equal to last draft
> GET /campaigns/{campaignId}/ux - draft modified - questions - Should return questions of last draft version
> GET /campaigns/{campaignId}/ux - draft modified - sentiments - Should return sentiments of last draft version
> GET /campaigns/{campaignId}/ux - draft modified - ux data - Should return methodology
> GET /campaigns/{campaignId}/ux - draft modified - ux data - Should return methodology description from ux data if exist
> GET /campaigns/{campaignId}/ux - draft modified - ux data - Should return methodology name
> GET /campaigns/{campaignId}/ux - draft modified - ux data - Should return methodology type
> GET /campaigns/{campaignId}/ux - draft modified - ux data - Should return research goal
> GET /campaigns/{campaignId}/ux - draft modified - ux data - Should return research usersNumber
> GET /campaigns/{campaignId}/ux - published - Should return methodology
> GET /campaigns/{campaignId}/ux - published - Should return methodology desciption
> GET /campaigns/{campaignId}/ux - published - Should return methodology goal
> GET /campaigns/{campaignId}/ux - published - Should return methodology name
> GET /campaigns/{campaignId}/ux - published - Should return methodology type
> GET /campaigns/{campaignId}/ux - published - Should return status published if there are published campaign data and data are equal to last draft
> PATCH /campaigns/{campaignId}/ux - from draft - Should create a new version of questions on publish
> PATCH /campaigns/{campaignId}/ux - from draft - Should create a new version of sentiments on publish
> PATCH /campaigns/{campaignId}/ux - from draft - Should create a new version on publish
> PATCH /campaigns/{campaignId}/ux - from draft - Should insert a question as draft if an item without id is sent
> PATCH /campaigns/{campaignId}/ux - from draft - Should not insert a new draft
> PATCH /campaigns/{campaignId}/ux - from draft - Should return 500 if send a sentiment value greater than 5 or lower then 1
> PATCH /campaigns/{campaignId}/ux - from draft - Should update a questions as draft if an item with id is sent
> PATCH /campaigns/{campaignId}/ux - from draft - Should update a sentiment as draft if an item with id is sent
> PATCH /campaigns/{campaignId}/ux - from draft - Should update goal as draft
> PATCH /campaigns/{campaignId}/ux - from draft - Should update methodology description as draft
> PATCH /campaigns/{campaignId}/ux - from draft - Should update methodology type as draft
> PATCH /campaigns/{campaignId}/ux - from draft - Should update users number as draft
> PATCH /campaigns/{campaignId}/ux - from draft modified - Should not remove anything from latest draft
> PATCH /campaigns/{campaignId}/ux - from empty - Should insert data as draft
> PATCH /campaigns/{campaignId}/ux - from empty - Should insert goal as draft
> PATCH /campaigns/{campaignId}/ux - from empty - Should insert methodology description as draft
> PATCH /campaigns/{campaignId}/ux - from empty - Should insert methodology type as draft
> PATCH /campaigns/{campaignId}/ux - from empty - Should insert question as draft
> PATCH /campaigns/{campaignId}/ux - from empty - Should insert sentiment as draft
> PATCH /campaigns/{campaignId}/ux - from empty - Should insert users number as draft
> PATCH /campaigns/{campaignId}/ux - from empty - Should return 400 on publish
> PATCH /campaigns/{campaignId}/ux - from publish - Should not insert a new draft
> PATCH /campaigns/{campaignId}/ux - from publish - Should update a methodology description in the draft
> PATCH /campaigns/{campaignId}/ux - from publish - Should update a methodology type in the draft
> PATCH /campaigns/{campaignId}/ux - from publish - Should update a question in the draft
> PATCH /campaigns/{campaignId}/ux - from publish - Should update the goal in the draft
> PATCH /campaigns/{campaignId}/ux - from publish - Should update the users number in the draft
> PATCH /campaigns/{campaignId}/ux - permissions and logging statuses - Should return remove sentiments 
> With draft only - Should return the sentiments if exist the cluster

@coveralls
Copy link
Collaborator

coveralls commented Aug 7, 2024

Coverage Status

coverage: 77.718% (-0.04%) from 77.758%
when pulling 02ec944 on turnoff-cc-verioning
into ed9fb3c on develop.

@sinatragianpaolo sinatragianpaolo marked this pull request as ready for review August 7, 2024 13:41
@sinatragianpaolo sinatragianpaolo changed the title Turnoff cc verioning Turnoff cc versioning Aug 9, 2024
@sinatragianpaolo sinatragianpaolo merged commit 099470a into develop Aug 9, 2024
4 of 6 checks passed
@sinatragianpaolo sinatragianpaolo deleted the turnoff-cc-verioning branch August 9, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants