rtercias / territory-data-service Goto Github PK
View Code? Open in Web Editor NEWGraphQL Service for MySQL territory database
GraphQL Service for MySQL territory database
create a log table using triggers in MySQL
Add keyword
, skip
, and take
parameters to support server-side paging. This will make change log pages to render faster. Right now, when looking for an entire month's worth of info, the page takes a long time to load.
Some views in MySQL returns a list of addresses. These need to be filtered to only include addresses whose status is “Active”
Create a new graphQL mutation "updateCampaign" under Campaign mutation resolvers
Currently, users are able to make requests to the API and, as long as the user is authenticated, the API does not care whether the user should have access to the requested data. As a first step, we want to verify that the user's congregation matches the data they're requesting.
This means we need to include user role and congregation to the request header, and match the cong against the requested query. If the congregation id is given as a query argument, then we can match against that. If it isn't, we may need to proceed with the query and check the result.
An exception to this is when the user role is Admin. These should be allowed regardless of congregation.
This needs to happen for most, if not all, our API queries.
Add an endpoint that triggers automatic optimization of addresses within a single territory.
This needs to include executing an optimization routine on the server side that uses geocoded values for each address and an optimization library.
Check out:
https://openrouteservice.org/dev/#/api-docs/optimization/post
Create a new graphQL query that returns a list of 3 territories nearest the given geocode coordinates (long, lat).
To calculate distance between two geocodes, try this code:
https://stackoverflow.com/a/18883819
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.