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

Locations & About Me #16

Merged
merged 28 commits into from
Jan 15, 2019
Merged

Locations & About Me #16

merged 28 commits into from
Jan 15, 2019

Conversation

appinteractive
Copy link
Member

@appinteractive appinteractive commented Nov 12, 2018

As a user
I’d like to add my location
So others can find me by city, region or country and or see from where I am.

As a user
I’d like to add a short description about me
So others can get a better picture who I am.

Todos:

  • split issue into smaller peaces
  • user can input country, region or city so it is her / his decision how accurate it should be
  • get the location data from the mapbox API by name with the related region and country
  • save the given location as a location tree (city)-[:IS_IN]->(region)-[:IS_IN]->(country)
  • display the given location in the frontend

Related PR`s

Human-Connection/Nitro-Web#9

Profile

Settings

Location Tree

Sorry, something went wrong.

@appinteractive appinteractive added this to the Nitro Staging milestone Nov 12, 2018
@appinteractive appinteractive changed the title Locations & About Me Locations & About Me | Tag and Category Statistics Nov 12, 2018
@appinteractive appinteractive changed the title Locations & About Me | Tag and Category Statistics [WIP] Locations & About Me | Tag and Category Statistics Nov 15, 2018
@appinteractive appinteractive added feature #81e076 help wanted Extra attention is needed labels Nov 16, 2018
@appinteractive appinteractive self-assigned this Dec 8, 2018

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.

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
@appinteractive appinteractive changed the title [WIP] Locations & About Me | Tag and Category Statistics [WIP] Locations & About Me Jan 2, 2019

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.

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
@appinteractive appinteractive removed the help wanted Extra attention is needed label Jan 7, 2019
@roschaefer roschaefer modified the milestones: Anubis, Bacchus Jan 7, 2019

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
Copy link
Contributor

@roschaefer roschaefer left a comment

Choose a reason for hiding this comment

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

I cannot see any test in this and therefore I won't merge. This PR is a perfect exercise how to do testing, as we have to stub out external requests. I would "record" the response of an external request and store the JSON in a file, check it into the repository, and reload the response from that file to avoid external requests. From ruby land I love https://github.com/vcr/vcr or https://github.com/oesmith/puffing-billy for the sledge-hammer solution.

Also I don't quite understand when a user gets geo-located and what is the expected result in the database. This is where a cucumber test would come in handy, where you can hard-code the expected result into the cucumber scenario.

}
}

const fetch = url => {
Copy link
Contributor

Choose a reason for hiding this comment

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

@appinteractive why do we have to implement our own fetch?

parent = ctx
})
}
// delete all current locations from user
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there such a thing like a database transaction in neo4j for atomic operations?


export default {
Mutation: {
CreateUser: async (resolve, root, args, context, info) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

We create a user in our tests. @appinteractive can you check if we have external requests on our build server now? This is bad practice as it makes the build unstable and it produces unnecessary traffic.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes it does but I don't know how to quick fix that currently.

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
Copy link
Member Author

appinteractive commented Jan 8, 2019

appinteractive and others added 12 commits January 9, 2019 13:37

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 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
…i into locations
@appinteractive always run the docker-compose up workflow at least once.

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.
@appinteractive

Running
```
docker-compose -f ../Nitro-Backend/docker-compose.yml -f ../Nitro-Backend/docker-compose.travis.yml up
```
from the Nitro-Web folder gives me an error when running seed data.

The configuration in this commit fixes it on my machine. I guess that
will fix the frontend build, too.
@appinteractive, it's super strange but apparently the JWT has to be
enclosed in quotes whereas the MAPBOX_TOKEN must not be enclosed. This
commit fixes almost all tests running in the docker containers on my
machine. The remaining test case is:
```
About me and and location
I set my location to "Mecklenburg-Vorpommern" (example #2)
```

@appinteractive when I try to repeat the cypress test on my machine I
get no results for "Mecklenburg-Vorpommern" only cities and states. can
you check if regions really work?
@appinteractive appinteractive changed the title [WIP] Locations & About Me Locations & About Me Jan 15, 2019
@appinteractive
Copy link
Member Author

Ready for merge @roschaefer

Copy link
Contributor

@roschaefer roschaefer left a comment

Choose a reason for hiding this comment

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

@appinteractive what happens if the frontend gets deployed before the image of the backend was updated?

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@appinteractive
Copy link
Member Author

@roschaefer you can’t login then

@roschaefer roschaefer merged commit 1ecdcb1 into master Jan 15, 2019
@roschaefer roschaefer deleted the locations branch January 15, 2019 12:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants