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

Ona custom changes #2

Open
wants to merge 71 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
9ac763c
Update /mvt query to work with configured TABLE_NAME and TABLE_COLUMN
FrankApiyo Nov 16, 2022
0017195
[WIP]Add authentication middleware
FrankApiyo Nov 17, 2022
ba5053d
Add id to submission properties in mvt tile
FrankApiyo Dec 5, 2022
094cbf7
Add submission json to mvt properties
FrankApiyo Dec 5, 2022
93fab2c
Add authentication middleware
FrankApiyo Dec 7, 2022
6585085
Ensure CORS is configured correctly using env and onadata intergratio…
FrankApiyo Dec 7, 2022
f266c0d
Add .env to .dockerignore
FrankApiyo Dec 7, 2022
3947bb2
Add a healthcheck endpoint
FrankApiyo Dec 7, 2022
d4cc051
[WIP]Add filter for field_name and field_value
FrankApiyo Dec 11, 2022
a2868e9
Add dockerhub build and push github action
FrankApiyo Dec 14, 2022
8ec0889
Add on push workflow trigger for ona-custom-changes
FrankApiyo Dec 14, 2022
9ac5039
Build docker image when a tag is pushed
FrankApiyo Dec 14, 2022
db113da
Add push: true to build and push github action
FrankApiyo Dec 14, 2022
0013eaf
Allow users who have no temp tokens to access public datasets
FrankApiyo Dec 19, 2022
8bd36bb
Add ternary operator to check if CORS_ORIGIN is string and remove con…
FrankApiyo May 11, 2023
91e4743
Update base image (node) version
FrankApiyo Dec 19, 2023
5bbb949
Merge pull request #3 from onaio/update-base-image-version
FrankApiyo Dec 19, 2023
0cac1e6
Merge branch 'master' into ona-custom-changes
KipSigei Mar 21, 2024
4e5644b
Use comma separated list of origins
KipSigei Mar 21, 2024
6d3247d
Update base image to use latest alpine
KipSigei Mar 21, 2024
e73472c
Merge pull request #4 from onaio/update-base-image
KipSigei Mar 21, 2024
d9529c0
Fix dependencies bug
KipSigei Mar 26, 2024
888ae3f
Merge pull request #5 from onaio/fixes
KipSigei Mar 26, 2024
17720f5
Fix dependencies bug
KipSigei Mar 26, 2024
5970e40
Merge pull request #6 from onaio/fixes
KipSigei Mar 26, 2024
8bd6b62
Cleanup
KipSigei Mar 26, 2024
c3d0955
Merge pull request #7 from onaio/fixes
KipSigei Mar 26, 2024
baa45a1
Fix imports
KipSigei Mar 26, 2024
c84c1b6
Use node 20.12.2 and update nodejs package-lock.json
ukanga Apr 23, 2024
7826310
Upgrade alpine packages in Dockerfile
ukanga Apr 24, 2024
c7a2696
Optimize mvt query
FrankApiyo May 4, 2024
f14a777
Fix where clause error
FrankApiyo May 4, 2024
72487d2
Merge pull request #9 from onaio/optimize-mvt-query
FrankApiyo May 6, 2024
d63a926
Merge pull request #8 from onaio/april-updates-2024
KipSigei May 7, 2024
ddfe73b
Optimive mvt query: Remove unneeded SRID and extra ST_Transform calls
FrankApiyo May 12, 2024
56319fb
Merge pull request #10 from onaio/optimize-mvt-query
FrankApiyo May 13, 2024
f257308
Use node:20.13.1-alpine3.19
ukanga May 27, 2024
abafc0e
Merge pull request #12 from onaio/may-updates-2024
KipSigei Jun 10, 2024
9f02a8f
Update base image to node:20.14.0-alpine3.19
KipSigei Jun 27, 2024
3c0eb21
Update base image to node:20.15.0-alpine3.19
KipSigei Jun 27, 2024
7ca685c
Merge pull request #13 from onaio/june-updates-2024
KipSigei Jun 27, 2024
c94086d
Update base image to node:20.15.1-alpine3.20
ciremusyoka Jul 31, 2024
283e96b
Merge pull request #14 from onaio/update-base-image
ciremusyoka Jul 31, 2024
62c8baf
Add endpoint to get map bounds and handle filters and errors
ciremusyoka Aug 9, 2024
ecd9ef9
Add limit subquery
ciremusyoka Aug 19, 2024
9ddcea8
Fix schema type
ciremusyoka Aug 19, 2024
1fe5086
Fix error when temp token not supplied and escape empty rows
ciremusyoka Aug 19, 2024
b7aac83
Merge pull request #15 from onaio/get-map-bounds
ciremusyoka Aug 28, 2024
e121b96
Update axios to v1.7.5
ciremusyoka Aug 28, 2024
4c6788f
Merge pull request #16 from onaio/update-axios
ciremusyoka Aug 28, 2024
967f090
Remove fastify express.
ciremusyoka Sep 24, 2024
e5e39f5
Use node v20.17.0
ciremusyoka Sep 24, 2024
e164c74
Merge pull request #17 from onaio/remove-express-upgrade-node
ciremusyoka Sep 25, 2024
0ba5cba
Update find-my-way 8.0.0 -> 8.2.2
FrankApiyo Sep 25, 2024
7a1021d
Merge pull request #18 from onaio/update-find-my-way
FrankApiyo Sep 25, 2024
0bf11b9
Update base image node:20.17 -> node:20.18
FrankApiyo Oct 29, 2024
08f0c50
Update the cookie and find-my-way npm packages
FrankApiyo Oct 29, 2024
2b5cb0c
Merge pull request #19 from onaio/oct-30-2024-sec-updates
FrankApiyo Oct 30, 2024
b9d74cd
Update package-spawn dependency
FrankApiyo Nov 26, 2024
6e1fda3
Update cross-spawn
FrankApiyo Nov 27, 2024
1cdfd30
Merge pull request #20 from onaio/update-cross-spawn
FrankApiyo Nov 27, 2024
d852acc
Update package-lock file
FrankApiyo Nov 27, 2024
d4aac19
Merge pull request #21 from onaio/update-package-lock-file
FrankApiyo Nov 27, 2024
fbe2029
Change CORS_ORIGIN -> CORS_ORIGINS
FrankApiyo Dec 11, 2024
e53568a
Merge pull request #22 from onaio/fix-cors-origins-bug
FrankApiyo Dec 13, 2024
d0c8345
Update base image
FrankApiyo Jan 28, 2025
962d632
Merge pull request #23 from onaio/update-base-image
FrankApiyo Jan 28, 2025
9daabca
Update docker base image tag
FrankApiyo Feb 26, 2025
57a1467
Merge pull request #24 from onaio/update-node-base-image
FrankApiyo Feb 26, 2025
a7f247b
Update base docker image
FrankApiyo Mar 26, 2025
149e7b6
Merge pull request #25 from onaio/update-base-docker-image
FrankApiyo Mar 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix where clause error
FrankApiyo committed May 4, 2024

Verified

This commit was signed with the committer’s verified signature.
FrankApiyo Frankline Apiyo
commit f14a77770e135063641961e28076e6da0ebdac89
2 changes: 1 addition & 1 deletion routes/mvt.js
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ const sql = (params, query) => {
${query.id_column ? `, ${query.id_column}` : ''}
FROM
mvtgeom2,
(SELECT ST_SRID(${process.env.TABLE_COLUMN}) AS srid FROM mvtgeom2 WHERE ${process.env.TABLE_COLUMN} LIMIT 1) a
(SELECT ST_SRID(${process.env.TABLE_COLUMN}) AS srid FROM mvtgeom2 LIMIT 1) a
WHERE
ST_Intersects(
${process.env.TABLE_COLUMN},