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

Exercise 4 wip #8

Merged
merged 194 commits into from
Jan 6, 2021
Merged

Exercise 4 wip #8

merged 194 commits into from
Jan 6, 2021

Conversation

aloparev
Copy link
Collaborator

@aloparev aloparev commented Dec 9, 2020

Homework exercise 4, final version with rebase and our review of another team.

yiimnta and others added 30 commits November 27, 2020 03:19
Detail:
- change apollo-datasource-rest with apollo-datasource
- rewrite class Post
- update votePost
- update schema
- add context
- update server.js: add JWT, middleware, g-shield
- exercise-4.md

Completed:
For an implemented signup feature.

⭐ For a software-tested signup feature.

⭐ For password validation.

⭐ For unique email address validation.

⭐ For not having security issues according to instructions.
- Removing this.context in PostDatasource
- Adding currUser in Context
- Test
>> returns a JWT

- Remove this.votes, add new funtion getVotes() for Post class
- Using Map for this.voters
- Using initialize in datasources
- Edit resolver, datasources
- Adding 2 permissions isEmailTaken and isPasswordShort
 using the extend standard
ich habe den Gruppennamen hinzugefügt
- Move the "list" variable from App.vue to ListNews.vue
- Delete props "list" in ListNews.vue
…tle when creating

- Use computed properties for the list of ordered items
- Change the name of the "vote" property to "votes"
- Validate title when creating (for empty or null)
Co-authored-by: Robert Schäfer <git@roschaefer.de>
FIX: Applying commit suggestions

Co-authored-by: Robert Schäfer <git@roschaefer.de>
ilonae and others added 26 commits December 8, 2020 18:31
backend:
- fix downvotePost ()

webapp:
-  News : adding mutation upvote(), downvote()
-  ListNews : get postlist, repair the function addNews, fix temporary duplicate id error when creating.
-  CreateNews: add new variable currentUser, return id of new post when using emit.

Note: Some bugs occur when deleting and creating
- Add nodemon, crypto
- Add Test files
- Fix bug duplicate ID when creating
- Add classes User and Post
- Edit server.js, post- and users-data-source.js

Co-Authored-By: Andrej <11981882+aloparev@users.noreply.github.com>
- Removing this.context in PostDatasource
- Adding currUser in Context
- Test
>> returns a JWT

- Remove this.votes, add new funtion getVotes() for Post class
- Using Map for this.voters
- Using initialize in datasources
- Edit resolver, datasources
- Adding 2 permissions isEmailTaken and isPasswordShort
 using the extend standard
@medizinmensch
Copy link
Contributor

Wow! I see that you did major refactorments, bugfixes and improvements compared to branch exercise-4.

⭐ For an implemented signup feature.
⭐ For a software-tested signup feature.
⭐ For password validation.
⭐ For unique email address validation.
⭐ For an implemented login feature using JWT.
⭐ For a software-tested login feature.
⭐ For assigning the authenticated user to a post in write and upvote mutations.
⭐ For requesting a review and reviewing another team's PR according to the instructions.
⭐ For a successful rebase on homework/main.
⭐ For not having security issues according to instructions.

10/10 ⭐

Party

Though I have to say it took me a while to see that you created not just another branch, but also a second PR (we save direct links to your PRs whenever you open one for an exercise).
Why didn't you refactor or even rebase the original branch? This would omit the need of a second branch and a second PR.

Hope you got well into 2021!

@aloparev aloparev merged commit f7bb1fe into main Jan 6, 2021
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.

None yet

4 participants