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.
Description
This PR includes the implementation and testing of various actions related to team management in the HighestGoodNetworkApp. The actions include fetching, updating, adding, and deleting teams and team members.
Related PRS (if any):
Main changes explained:
teamMembersFectchACtion: Successfully creates an action to set all user teams.
userTeamsUpdateAction: Successfully creates an action to update a user team.
addNewTeam: Successfully creates an action to add a new team.
teamsDeleteAction: Successfully creates an action to delete a team.
updateTeamAction: Successfully creates an action to update a team.
teamUsersFetchAction: Successfully creates an action to set fetching team users flag.
teamUsersFetchCompleteAction: Successfully creates an action to set team users.
teamUsersFetchErrorAction: Successfully creates an action for team users fetch error.
teamMemberDeleteAction: Successfully creates an action to delete a team member.
teamMemberAddAction: Successfully creates an action to add a team member.
updateVisibilityAction: Successfully creates an action to update team member visibility.
fetchAllTeamCodeSucess: Successfully creates an action to fetch all team codes successfully.
fetchAllTeamCodeFailure: Successfully creates an action for fetch all team codes failure.
getAllUserTeams: Successfully fetches all user teams and dispatches RECEIVE_ALL_USER_TEAMS action.
postNewTeam: Successfully posts a new team and dispatches ADD_NEW_TEAM action.
deleteTeam: Successfully deletes a team and dispatches TEAMS_DELETE action.
How to test:
Check out the current branch.
Run npm install if necessary.
Execute the following command: npm test allTeamsAction.js.test.js
Verify that all test cases pass successfully without any errors.
Screenshots or videos of changes:
Note:
Include the information the reviewers need to know.