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

✨ Add support to query encrypted data #479

Open
wants to merge 72 commits into
base: 3.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
1c43c9f
fix: jsdoc (#385)
jannyHou Jul 9, 2019
871374d
chore: set package-lock=false in .npmrc
Aug 20, 2019
9fb6c85
Fix Index upgrade
loryk May 6, 2019
8f8b2c7
Extends test structure to cover fix
Aug 3, 2019
07a6a1a
3.8.0
dhmlau Sep 19, 2019
036e01d
chore: exclude "good first issues" from stalebot
bajtos Nov 5, 2019
cfd069b
Fix eslint violations
bajtos Nov 1, 2019
f4ed37f
chore: improve issue and PR templates
nabdelgadir Nov 15, 2019
a7a538a
Handler for with(out) time zone time(stamp) types
Sep 3, 2019
43a710f
fix(pool): synchronously release pool connection
Dec 3, 2019
2c498ae
3.8.1
bajtos Dec 9, 2019
16dd365
fix: allow string type id to be auto-generated
Dec 10, 2019
c693678
chore: update CODEOWNERS file
Dec 19, 2019
cf85167
fix schema name with pascal case
Jan 29, 2020
f14fa63
3.8.2
dhmlau Jan 31, 2020
fd7cbb1
add missing package chalk
Jan 31, 2020
773d438
3.8.3
dhmlau Jan 31, 2020
2adc7fc
chore: update copyright year
dhmlau Feb 11, 2020
cd56f7a
feat: Added defaultIdSort setting for find method
Feb 17, 2020
a3df682
doc: added readme info on defaultIdSort
Feb 25, 2020
2400384
3.9.0
raymondfeng Feb 25, 2020
45b08e9
fix postgres random ci failure
Feb 13, 2020
2fe9afd
fix: `DEFAULT` for null values in where clause
deepakrkris Feb 26, 2020
ba5149b
tests: column should be discovered and mapped
Mar 5, 2020
cf44d31
fix
Mar 6, 2020
29cf613
fix README display on the site
Mar 15, 2020
d1313f6
Exclude 'deps' and '.github' from npm publish
emonddr Mar 12, 2020
ecf0c81
fix readme layout
Mar 19, 2020
8afb671
3.9.1
emonddr Mar 19, 2020
769f491
chore: update strong-globalize version
dhmlau Mar 19, 2020
66d9438
Drop support for Node.js 8.x
bajtos Apr 17, 2020
c449a3d
Add Node.js 13.x to Travis CI matrix
bajtos Apr 17, 2020
2514d29
Update dependencies
bajtos Apr 17, 2020
17c276b
[SEMVER-MAJOR] Upgrade `pg` to `8.0`
bajtos Apr 17, 2020
a32a92a
Upgrade dev dependencies
bajtos Apr 17, 2020
72c4c27
README: add info about LTS policy
bajtos Apr 20, 2020
d779f13
5.0.0
bajtos Apr 21, 2020
007cdfa
Fix serialization of arrays of string in update (#428)
onaluf May 5, 2020
1c4d97d
5.0.1
jannyHou May 6, 2020
d647d79
docs: update readme with more lb4 form
May 22, 2020
d92845f
fix: use tip.html
dhmlau May 28, 2020
d5d5ea2
fix: fix example prop def
Jun 4, 2020
da5598a
fix: fix uuid setup
Jun 5, 2020
6f95976
5.0.2
dhmlau Jul 10, 2020
e30bd72
Update .travis.yml
karanssj4 Jun 23, 2020
172c75b
docs: update loopback types link
Aug 13, 2020
46eafe4
chore: switch to DCO
dhmlau Aug 21, 2020
c1f0457
fix setup script to not exit calling shell
bajtos Aug 28, 2020
59cad94
update dependencies to latest
bajtos Aug 28, 2020
0ac9289
5.1.0
bajtos Sep 1, 2020
99a0005
feat: adds 'contains' operator for querying arrays
shubhisood Sep 3, 2020
21da775
docs: improve README organization
bajtos Oct 6, 2020
ca1110a
test: fix array tests to handle List values
bajtos Oct 6, 2020
4b434bc
test: clean test for `contains` operator
bajtos Oct 6, 2020
8ad72a5
5.2.0
bajtos Oct 6, 2020
0edc558
Ensure order of and/or clauses are preserved
raymondfeng Nov 9, 2020
26e2a73
5.2.1
raymondfeng Nov 10, 2020
7d2ba32
fix: enable pool error handling
mgabeler-lee-6rs Dec 2, 2020
98df623
5.3.0
bajtos Dec 7, 2020
09ed542
ci: switch travis to github actions
frbuceta Feb 1, 2021
9902bee
Revert "ci: switch travis to github actions"
bajtos Feb 2, 2021
cb5cee0
ci: switch from Travis to Github Actions
Feb 12, 2021
33de0e2
Add on delete options on FK constraints
Sep 2, 2020
bf6067e
5.4.0
dhmlau May 3, 2021
ce924be
Defensively drop constraints during migrations
chris-kobrzak Jul 4, 2021
2994e4e
chore: move repo to loopbackio org
dhmlau Jul 12, 2021
1199248
✨ Add support to query encrypted data
SAMIBETTAYEB Jun 17, 2021
8899f59
⬆️ Add dev dependencies
SAMIBETTAYEB Jun 22, 2021
c1a2074
🗃 Enable pgcrypto extension
SAMIBETTAYEB Jun 22, 2021
81dfaec
🔧 Add required crypto env variables
SAMIBETTAYEB Jun 22, 2021
b4ff5e7
✅ 🗃 Add encrypted_data table for testing purposes
SAMIBETTAYEB Jun 22, 2021
9beef0c
✨ ✅ Add encrypted data tests
SAMIBETTAYEB Jun 22, 2021
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
37 changes: 0 additions & 37 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

50 changes: 50 additions & 0 deletions .github/ISSUE_TEMPLATE/Bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
name: Bug report
about: Create a report to help us improve
labels: bug

---

<!-- 🚨 STOP 🚨 STOP 🚨 STOP 🚨

HELP US HELP YOU, PLEASE
- Do a quick search to avoid duplicate issues
- Provide as much information as possible (reproduction sandbox, use case for features, etc.)
- Consider using a more suitable venue for questions such as Stack Overflow, Gitter, etc.

Please fill in the *entire* template below.

-->

## Steps to reproduce

<!-- Describe how to reproduce the issue -->

## Current Behavior

<!-- Describe the observed result -->

## Expected Behavior

<!-- Describe what did you expect instead, what is the desired outcome? -->

## Link to reproduction sandbox

<!--
See https://loopback.io/doc/en/contrib/Reporting-issues.html#loopback-3x-bugs
Note: Failure to provide a sandbox application for reproduction purposes will result in the issue being closed.
-->

## Additional information

<!--
Copy+paste the output of these two commands:
node -e 'console.log(process.platform, process.arch, process.versions.node)'
npm ls --prod --depth 0 | grep loopback
-->

## Related Issues

<!-- Did you find other bugs that looked similar? -->

_See [Reporting Issues](http://loopback.io/doc/en/contrib/Reporting-issues.html) for more tips on writing good issues_
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/Feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Feature request
about: Suggest an idea for this project
labels: feature

---

## Suggestion

<!-- A summary of what you'd like to see added or changed -->

## Use Cases

<!--
What do you want to use this for?
What shortcomings exist with current approaches?
-->

## Examples

<!-- Show how this would be used and what the behavior would be -->

## Acceptance criteria

TBD - will be filled by the team.
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/Question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Question
about: The issue tracker is not for questions. Please use Stack Overflow or other resources for help.
labels: question

---

<!-- 🚨 STOP 🚨 STOP 🚨 STOP 🚨

THE ISSUE TRACKER IS NOT FOR QUESTIONS.

DO NOT CREATE A NEW ISSUE TO ASK A QUESTION.

Please use one of the following resources for help:

**Questions**

- https://stackoverflow.com/tags/loopbackjs
- https://groups.google.com/forum/#!forum/loopbackjs
- https://gitter.im/strongloop/loopback

-->
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: Report a security vulnerability
url: https://loopback.io/doc/en/contrib/Reporting-issues.html#security-issues
about: Do not report security vulnerabilities using GitHub issues. Please send an email to `reachsl@us.ibm.com` instead.
- name: Get help on StackOverflow
url: https://stackoverflow.com/tags/loopbackjs
about: Please ask and answer questions on StackOverflow.
- name: Join our mailing list
url: https://groups.google.com/forum/#!forum/loopbackjs
about: You can also post your question to our mailing list.
30 changes: 11 additions & 19 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
### Description


#### Related issues

<!--
Please use the following link syntaxes:

- connect to #49 (to reference issues in the current repository)
- connect to strongloop/loopback#49 (to reference issues in another repository)
-->

- connect to <link_to_referenced_issue>
Please provide a high-level description of the changes made by your pull request.

### Checklist
Include references to all related GitHub issues and other pull requests, for example:

<!--
- Please mark your choice with an "x" (i.e. [x], see
https://github.com/blog/1375-task-lists-in-gfm-issues-pulls-comments)
- PR's without test coverage will be closed.
Fixes #123
Implements #254
See also #23
-->

## Checklist

- [ ] DCO (Developer Certificate of Origin) [signed in all commits](https://loopback.io/doc/en/contrib/code-contrib.html)
- [ ] `npm test` passes on your machine
- [ ] New tests added or existing tests modified to cover all changes
- [ ] Code conforms with the [style
guide](http://loopback.io/doc/en/contrib/style-guide.html)
- [ ] Code conforms with the [style guide](https://loopback.io/doc/en/contrib/style-guide-es6.html)
- [ ] Commit messages are following our [guidelines](https://loopback.io/doc/en/contrib/git-commit-messages.html)
1 change: 1 addition & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ exemptLabels:
- critical
- p1
- major
- good first issue
# Label to use when marking an issue as stale
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
Expand Down
65 changes: 65 additions & 0 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Continuous Integration

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [12, 14, 16]
services:
postgres:
image: postgres:latest
env:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
env:
PGUSER: postgres
code-lint:
name: Code Lint
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14
- name: Bootstrap project
run: |
npm ci --ignore-scripts
- name: Verify code linting
run: npm run lint

commit-lint:
name: Commit Lint
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14
- name: Bootstrap project
run: |
npm ci --ignore-scripts
- name: Verify commit linting
run: npx commitlint --from origin/master --to HEAD --verbose
6 changes: 6 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"reporter": "spec",
"timeout": 10000,
"require": "test/init.js",
"exit": true
}
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

Loading