Feature: Add admin canceled project status #177
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR begins using the status 7 called Delisted already in our db.
This status means the Admin cancelled a project and only said admin can activate it again, not the project owner.
Also added a class to notify segment of project updates that will be sent when updating the project from the index view in the adminbro, or editing the project individually.
Removed the "Project edited" segment call @divine-comedian on the editProject mutation as this will be called in the AfterUpdate callback in the project entity.
To test this PR you can enter de adminbro an call the actions on the bluebar:
Finally you can also test the "Project edited" segment call by editing the project individually in the adminbro or calling the following mutation (edit it as you need):
mutation { editProject(projectId: 1, newProjectData: { title: "test" }) { id } }
Result (ignore project deleted, I renamed it as cancelled):
If you could do some testing @divine-comedian and @laurenluz that would be awesome. Remember to change to my branch and run the impact graph.