-
Notifications
You must be signed in to change notification settings - Fork 0
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
Frontend/feature/moderation-not-moderator-jury-backend-connections #599
Frontend/feature/moderation-not-moderator-jury-backend-connections #599
Conversation
Tag selection on moderation-not-jury page is connected with backend with 2 API requests (moderators/my-tags) GET and POST. GET request is executed at every render of the page and POST request is executed every change on tag list. If a user selects more than 5 tags or selects no tags, no request is sent and warning message is shown. The information of member being moderator or not is also taken from backend using profile/myProfile endpoint and necessary page is shown accordingly. On the moderation-not-moderator page when a member clicks apply button a POST request is sent to /moderators/request-promotion end point and a success message to user is shown. Necessary CSS updates of new components are also done.
I was getting error message from the /moderators/my-tags POST endpoint because I was trying to send all of the tag information,however only the last changed one was expected. It is fixed in this commit. Also now I am rendering the posts with another GET request to endpoint /moderators/my-requests after a change occurs on the tags.
Yes, it expected to be so because the backend sends the same data no matter what for now. We have tested it with @EmreBatuhan manually. As I mentioned in the PR explanation I am re-rendering the posts after a change occurs on the tags. It will work as intended when backend updates the response. New tests will be made then. If any new problem arises we will be fixing it. For now that part is completed for front-end. |
If that's the case, I think the UI is ready to go though I recommend we merge this branch when the backend is fixed! |
I have contacted @EmreBatuhan. We agreed that the UI can be merged for now and it shall be followed by a potential bug fix PR. |
Tag selection on moderation-not-jury page is connected with backend with 2 API requests (moderators/my-tags) GET and POST. GET request is executed at every render of the page and POST request is executed every change on tag list. If a user selects more than 5 tags or selects no tags, no request is sent and warning message is shown. The information of member being moderator or not is also taken from backend using profile/myProfile endpoint and necessary page is shown accordingly. On the moderation-not-moderator page when a member clicks apply button a POST request is sent to /moderators/request-promotion end point and a success message to user is shown. Necessary CSS updates of new components are also done. Also I am rendering the posts with another GET request to endpoint /moderators/my-requests after a change occurs on the tags. I have also tested manually these new features as possible as I can.