Skip to content

Commit

Permalink
Merge branch 'hopetambala:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
hopetambala committed Dec 19, 2021
2 parents d8c4499 + 1b3d457 commit 8cc6bee
Show file tree
Hide file tree
Showing 20 changed files with 7,318 additions and 7,897 deletions.
39 changes: 39 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence

* @hopetambala

# Order is important; the last matching pattern takes the most
# precedence. When someone opens a pull request that only
# modifies JS files, only @js-owner and not the global
# owner(s) will be requested for a review.

# *.js @js-owner

# You can also use email addresses if you prefer. They'll be
# used to look up users just like we do for commit author
# emails.

# *.go [email protected]

# In this example, @doctocat owns any files in the build/logs
# directory at the root of the repository and any of its
# subdirectories.

# /build/logs/ @doctocat

# The `docs/*` pattern will match files like
# `docs/getting-started.md` but not further nested files like
# `docs/build-app/troubleshooting.md`.

# docs/* [email protected]

# In this example, @octocat owns any file in an apps directory
# anywhere in your repository.

# apps/ @octocat

# In this example, @doctocat owns any file in the `/docs`
# directory in the root of your repository.

# /docs/ @doctocat
48 changes: 48 additions & 0 deletions .github/workflows/jest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Jest Tests

env:
PARSE_ENV : "dev"
PARSE_APP_ID : "myAppId"
PARSE_JAVASCRIPT_KEY : "_PLACEHOLDER_"
PARSE_SERVER_URL : "http://localhost:1337/parse"

on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
jobs:
jest-testing:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x,14.x]
services:
mongodb:
image: mongo:4.4
ports:
- 27017:27017
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Puente CloudCode Dependencies
run: |
npm install
- name: Lint
run: |
npm run lint
- name: Start App and Test Jest
run: |
npm run start &
sleep 40 &&
npm run test-github-actions
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ logs
*.DS_Store
/coverage
.parse.local
.env.prod
64 changes: 64 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,70 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.8.0](https://github.com/hopetambala/puente-node-cloudcode/compare/v1.5.0...v1.8.0) (2021-12-18)


### Features

* add deep linking betweent user and survey ([4b78dc5](https://github.com/hopetambala/puente-node-cloudcode/commit/4b78dc5213ffae6d65f751c47054153488cf63df))
* add deleteUser function ([a63bf26](https://github.com/hopetambala/puente-node-cloudcode/commit/a63bf26b32b3986e1c3844324001bf49c7cfe9b7))
* added expoPushToken function to udpate user ([87b2f1b](https://github.com/hopetambala/puente-node-cloudcode/commit/87b2f1b2a0415b5872ee541d7b23ae6273458a11))
* count service to get unqiue surrveydata created ([89337d0](https://github.com/hopetambala/puente-node-cloudcode/commit/89337d0bfa0b65c7b138afce978143ef0069a713))
* handle looped form submission ([80d5741](https://github.com/hopetambala/puente-node-cloudcode/commit/80d5741e8b2982138ee4b877466e030822598cd7))
* offline moved to node cloud ([30944b3](https://github.com/hopetambala/puente-node-cloudcode/commit/30944b3ca3536ef04763f77f6514d76eaba1ac20))
* pictures on any forms work ([79d0a3d](https://github.com/hopetambala/puente-node-cloudcode/commit/79d0a3d0dc9a0954e68549523c5806dd6a1ce37d))
* refactor loop portion of crud to utils ([799837b](https://github.com/hopetambala/puente-node-cloudcode/commit/799837b1cf1354f394ee643e3c36d3dbb9016335))
* update all dependencies! ([eab407c](https://github.com/hopetambala/puente-node-cloudcode/commit/eab407c0a9332736d906c3ecbf1bc99be119897e))
* updated count service to include other parse models ([d5a393a](https://github.com/hopetambala/puente-node-cloudcode/commit/d5a393acd84708fc8559e5d91ecd2001d4441214))


### Bug Fixes

* tests PLATFORM-332 ([a494930](https://github.com/hopetambala/puente-node-cloudcode/commit/a4949300a30c3aa264043acfa2b033e828762a97))
* checking if key is a photo ([6fdd4fd](https://github.com/hopetambala/puente-node-cloudcode/commit/6fdd4fdada93163489e16ad111f054fe62346f0e))
* **deps:** update dependency lodash to v4.17.21 [security] ([ea8908a](https://github.com/hopetambala/puente-node-cloudcode/commit/ea8908a6b8349b16ee55f7275d6f27bf94648881))
* lodash require ([0187a33](https://github.com/hopetambala/puente-node-cloudcode/commit/0187a337d815eb5d3af87228475089f4485fdbb2))
* package.json & package-lock.json to reduce vulnerabilities ([7f43954](https://github.com/hopetambala/puente-node-cloudcode/commit/7f4395439f3cb7b61ed005aa476817ba814dea42))
* reason why tests were always failing ([c820b93](https://github.com/hopetambala/puente-node-cloudcode/commit/c820b936dc00e4e6d17bcffd9c75f18a243ce7a3))
* remove all .includes from codebase ([467caca](https://github.com/hopetambala/puente-node-cloudcode/commit/467cacaeea27dcf64f5dcfbb4b36d11046adf3e2))
* sort basic query results ([c20a12a](https://github.com/hopetambala/puente-node-cloudcode/commit/c20a12a37debffa8edbf585b982a9e0ba8dc53be))
* testing ([2fdb6cd](https://github.com/hopetambala/puente-node-cloudcode/commit/2fdb6cd2663725b0a938573dee968fee8eae5641))

## [1.7.0](https://github.com/hopetambala/puente-node-cloudcode/compare/v1.5.0...v1.7.0) (2021-09-01)


### Features

* add deep linking betweent user and survey ([4b78dc5](https://github.com/hopetambala/puente-node-cloudcode/commit/4b78dc5213ffae6d65f751c47054153488cf63df))
* add deleteUser function ([a63bf26](https://github.com/hopetambala/puente-node-cloudcode/commit/a63bf26b32b3986e1c3844324001bf49c7cfe9b7))
* added expoPushToken function to udpate user ([87b2f1b](https://github.com/hopetambala/puente-node-cloudcode/commit/87b2f1b2a0415b5872ee541d7b23ae6273458a11))
* count service to get unqiue surrveydata created ([89337d0](https://github.com/hopetambala/puente-node-cloudcode/commit/89337d0bfa0b65c7b138afce978143ef0069a713))
* pictures on any forms work ([79d0a3d](https://github.com/hopetambala/puente-node-cloudcode/commit/79d0a3d0dc9a0954e68549523c5806dd6a1ce37d))
* update all dependencies! ([eab407c](https://github.com/hopetambala/puente-node-cloudcode/commit/eab407c0a9332736d906c3ecbf1bc99be119897e))


### Bug Fixes

* tests PLATFORM-332 ([a494930](https://github.com/hopetambala/puente-node-cloudcode/commit/a4949300a30c3aa264043acfa2b033e828762a97))
* **deps:** update dependency lodash to v4.17.21 [security] ([ea8908a](https://github.com/hopetambala/puente-node-cloudcode/commit/ea8908a6b8349b16ee55f7275d6f27bf94648881))
* package.json & package-lock.json to reduce vulnerabilities ([7f43954](https://github.com/hopetambala/puente-node-cloudcode/commit/7f4395439f3cb7b61ed005aa476817ba814dea42))
* sort basic query results ([c20a12a](https://github.com/hopetambala/puente-node-cloudcode/commit/c20a12a37debffa8edbf585b982a9e0ba8dc53be))
* testing ([2fdb6cd](https://github.com/hopetambala/puente-node-cloudcode/commit/2fdb6cd2663725b0a938573dee968fee8eae5641))

## [1.6.0](https://github.com/hopetambala/puente-node-cloudcode/compare/v1.5.0...v1.6.0) (2021-03-20)


### Features

* add deleteUser function ([a63bf26](https://github.com/hopetambala/puente-node-cloudcode/commit/a63bf26b32b3986e1c3844324001bf49c7cfe9b7))
* count service to get unqiue surrveydata created ([89337d0](https://github.com/hopetambala/puente-node-cloudcode/commit/89337d0bfa0b65c7b138afce978143ef0069a713))
* pictures on any forms work ([79d0a3d](https://github.com/hopetambala/puente-node-cloudcode/commit/79d0a3d0dc9a0954e68549523c5806dd6a1ce37d))


### Bug Fixes

* sort basic query results ([c20a12a](https://github.com/hopetambala/puente-node-cloudcode/commit/c20a12a37debffa8edbf585b982a9e0ba8dc53be))

## [1.5.0](https://github.com/hopetambala/puente-node-cloudcode/compare/v1.4.0...v1.5.0) (2020-06-11)


Expand Down
13 changes: 13 additions & 0 deletions _tests_/integration/auth.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@ describe('role testing', () => {
});
});

it('should add a push token to the existing user', async () => {
const credentials = {
userId: adminRoleID,
expoPushToken: 'TestExpoPushToken',
};
return cloudFunctions.addUserPushToken(credentials).then((result) => {
const jsonString = JSON.stringify(result);
const jsonValues = JSON.parse(jsonString);

expect(jsonValues.expoPushToken).toEqual('TestExpoPushToken');
});
});

it('should add a user to same orginzation with contributor role', async () => {
const credentials = {
firstname: 'Jon',
Expand Down
Loading

0 comments on commit 8cc6bee

Please sign in to comment.