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

Refactor, harden, and bring up to date #2

Merged
merged 11 commits into from
Nov 3, 2023
Merged

Refactor, harden, and bring up to date #2

merged 11 commits into from
Nov 3, 2023

Conversation

stefano-ottolenghi
Copy link
Collaborator

@stefano-ottolenghi stefano-ottolenghi commented Oct 31, 2023

  • use Neo4j driver version 5
  • refactor and simplify here and there
  • don't make feedback with unknown project be registered with project apoc (they will be ignored)
  • security: don't allow any request field to become a database property. Filter against a whitelist (all currently used fields are whitelisted)
  • security: throttle requests -- identical requests coming in the same minute result in a 403 HTTP response
  • surface user journey in listing api.

Depends on

neo4j-labs/neo4j-labs.github.io#3
neo4j-documentation/docs-ui#197

@stefano-ottolenghi stefano-ottolenghi changed the base branch from master to dev October 31, 2023 12:57
@stefano-ottolenghi stefano-ottolenghi marked this pull request as ready for review November 2, 2023 06:13
stefano-ottolenghi added a commit to neo4j-documentation/docs-ui that referenced this pull request Nov 3, 2023
- widget moved to the left, and is part of the html output rather than
being a floating js object. Because the right ToC has `position: sticky`
and scrolls itself as you progress through a page, I was unable to leave
the feedback on the right _and_ avoid it shadowing some content. I've
made the nav on the left slightly smaller so people can't think there's
anything underneath the feedback. It gets expanded to full height when
the feedback vanishes.
- after leaving feedback, politely thanks you and vanishes within a
couple seconds
- you _can't_ leave negative feedback without adding a message
- you _can_ leave a message to a positive feedback (but may also leave
it empty)
- the user journey through docs pages is registered and submitted as
part of their feedback
- taken away the `Edit this page` links, and improved style/wording
overall

----

Depends on 

neo4j-labs/neo4j-labs.github.io#3
neo4j-contrib/dx-feedback-form#2
@stefano-ottolenghi stefano-ottolenghi merged commit 0f9cf1d into dev Nov 3, 2023
@stefano-ottolenghi stefano-ottolenghi deleted the refactor branch November 3, 2023 09:29
stefano-ottolenghi added a commit to neo4j-labs/neo4j-labs.github.io that referenced this pull request Nov 3, 2023
Surface new collected data, namely `information` on positive feedback, and the user journey.

Depends on 

neo4j-contrib/dx-feedback-form#2
neo4j-documentation/docs-ui#197
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.

1 participant