Skip to content
This repository was archived by the owner on Mar 22, 2019. It is now read-only.

[WIP] Editor #136

Merged
merged 60 commits into from
Feb 26, 2019
Merged

[WIP] Editor #136

merged 60 commits into from
Feb 26, 2019

Conversation

appinteractive
Copy link
Member

@appinteractive appinteractive commented Jan 28, 2019

Improved content xss, sanitization, formatting and contentExcerpt updates

Related with Human-Connection/Nitro-Web#153

Verified

This commit was signed with the committer’s verified signature. The key has expired.
appinteractive Grzegorz Leoniec

Verified

This commit was signed with the committer’s verified signature. The key has expired.
appinteractive Grzegorz Leoniec

Verified

This commit was signed with the committer’s verified signature. The key has expired.
appinteractive Grzegorz Leoniec

Verified

This commit was signed with the committer’s verified signature. The key has expired.
appinteractive Grzegorz Leoniec
@appinteractive appinteractive changed the title Editor [WIP] Editor Jan 28, 2019
appinteractive and others added 22 commits February 4, 2019 10:56

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was signed with the committer’s verified signature. The key has expired.
appinteractive Grzegorz Leoniec

Verified

This commit was signed with the committer’s verified signature. The key has expired.
appinteractive Grzegorz Leoniec

Verified

This commit was signed with the committer’s verified signature. The key has expired.
appinteractive Grzegorz Leoniec

Verified

This commit was signed with the committer’s verified signature. The key has expired.
appinteractive Grzegorz Leoniec

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Separating the relations from mere properties removes boilerplate code.
roschaefer and others added 17 commits February 20, 2019 01:30
Only change the password, if we are the default user. Everything else
should be executed.
I put the relevant line on categories and organizations too, but I
didn't test it separately. I could have tested it but found it
unnecessary repeating
You can now run graphql mutations *from the point of view* of a user.

@mattwr18 @Tirokk Do you have a better idea how to name the factory
builder?
I found a way to cleanly request additional attributes in our
middleware. We can use this pattern if we e.g. require the author of
posts and comments to check if the user is the author and therefore
authorized to update or delete the post.

CC @mattwr18 @appinteractive @Tirokk

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Refactor seeds and tests

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
create('user', { id: 'u3', name: 'Jenny Rostock', role: 'user', email: 'user@example.org' }),
create('user', { id: 'u4', name: 'Tick', role: 'user', email: 'tick@example.org' }),
create('user', { id: 'u5', name: 'Trick', role: 'user', email: 'trick@example.org' }),
create('user', { id: 'u6', name: 'Track', role: 'user', email: 'track@example.org' }),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to rename the users. I accidently used the German versions of Dagobert Ducks grandchildren here. But the English version is different, see here: https://en.wikipedia.org/wiki/Huey,_Dewey,_and_Louie

The idMiddleware was adding selection fields to the resolveInfo even if
the selection fields were empty. This caused a bug for each resolve
function including

```
{
 isLoggedin
}
```

which does not have any additional curly braces after the query.
Ids are queried only for well known queries and mutations
This is necessary for fullstack testing in the frontend repository
* use the same `relate` method for now
* use a capital letter for the model `user` instead of `User`
We have to specify the `yarn run test:cypress` in `.travis.yml` in the
Nitro-Web repo.
@roschaefer
Copy link
Contributor

@appinteractive CodeFactor behaves awkwardly. I ignored the issue on the last build, now the check fails again. Can we disable CodeFactor @appinteractive ?

@roschaefer roschaefer merged commit 691c0e8 into master Feb 26, 2019
@roschaefer roschaefer deleted the editor branch February 26, 2019 15:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants