-
Notifications
You must be signed in to change notification settings - Fork 183
Comparing changes
Open a pull request
base repository: loopbackio/loopback-connector-postgresql
base: v5.4.0
head repository: loopbackio/loopback-connector-postgresql
compare: v5.5.1
- 14 commits
- 16 files changed
- 6 contributors
Commits on Jul 4, 2021
-
Defensively drop constraints during migrations
When `PostgreSQL.prototype.getDropForeignKeys` gets called with duplicated foreign keys, an invalid `ALTER TABLE` statement gets created. This is because the duplicates are mapped to multiple `DROP CONSTRAINT fk_key` SQL actions, e.g.: ```sql -- This will throw an error ALTER TABLE "public"."foo" DROP CONSTRAINT "fk_duplicatedKey", DROP CONSTRAINT "fk_duplicatedKey", DROP CONSTRAINT "fk_duplicatedKey", DROP CONSTRAINT "fk_otherKey" ``` As the `DROP CONSTRAINT` actions are run sequentially, when the first action gets executed by PostgreSQL, the next one (for the same, but already dropped key) will not cause an SQL error thanks to the added IF EXISTS check: ```sql -- This is valid SQL ALTER TABLE "public"."foo" DROP CONSTRAINT IF EXISTS "fk_duplicatedKey", DROP CONSTRAINT IF EXISTS "fk_duplicatedKey", DROP CONSTRAINT IF EXISTS "fk_duplicatedKey", DROP CONSTRAINT IF EXISTS "fk_otherKey" ``` Please note, this is really a hack and we still need to understand why the method in question gets called with duplicated foreign keys in certain conditions. Signed-off-by: Chris Kobrzak <chris.kobrzak@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 49b7614 - Browse repository at this point
Copy the full SHA 49b7614View commit details
Commits on Jul 12, 2021
-
chore: move repo to loopbackio org
Signed-off-by: Diana Lau <dhmlau@ca.ibm.com>
Configuration menu - View commit details
-
Copy full SHA for a2b3c30 - Browse repository at this point
Copy the full SHA a2b3c30View commit details
Commits on Jul 13, 2021
-
Merge pull request #480 from chris-kobrzak/master
Defensively drop constraints during migrations
Configuration menu - View commit details
-
Copy full SHA for edc9c80 - Browse repository at this point
Copy the full SHA edc9c80View commit details
Commits on Jul 14, 2021
-
Merge pull request #481 from loopbackio/openjsf
chore: move repo to loopbackio org
Configuration menu - View commit details
-
Copy full SHA for 051098d - Browse repository at this point
Copy the full SHA 051098dView commit details
Commits on Sep 21, 2021
-
feat(operators): add fts match operator
Signed-off-by: Akshat Dubey <akshat.dubey@sourcefuse.com>
Configuration menu - View commit details
-
Copy full SHA for ce2310e - Browse repository at this point
Copy the full SHA ce2310eView commit details
Commits on Sep 24, 2021
-
fix: disregard empty and/or fields
Signed-off-by: Abhilash Murthy <abhilashmurthy92@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ecf91b5 - Browse repository at this point
Copy the full SHA ecf91b5View commit details
Commits on Nov 23, 2021
-
chore: add Rifa and Mario as codeowners
Signed-off-by: Diana Lau <dhmlau@ca.ibm.com>
Configuration menu - View commit details
-
Copy full SHA for fb87b13 - Browse repository at this point
Copy the full SHA fb87b13View commit details
Commits on Jan 13, 2022
-
* chore: add Rifa and Mario as codeowners (Diana Lau) * fix: disregard empty and/or fields (Abhilash Murthy) * feat(operators): add fts match operator (Akshat Dubey) * chore: move repo to loopbackio org (Diana Lau) * Defensively drop constraints during migrations (Chris Kobrzak)
Configuration menu - View commit details
-
Copy full SHA for 96e78db - Browse repository at this point
Copy the full SHA 96e78dbView commit details
Commits on Mar 22, 2022
-
Signed-off-by: Diana Lau <dhmlau@ca.ibm.com>
Configuration menu - View commit details
-
Copy full SHA for b677532 - Browse repository at this point
Copy the full SHA b677532View commit details
Commits on Mar 25, 2022
-
Configuration menu - View commit details
-
Copy full SHA for aa93d13 - Browse repository at this point
Copy the full SHA aa93d13View commit details
Commits on Mar 29, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 61b5029 - Browse repository at this point
Copy the full SHA 61b5029View commit details
Commits on May 23, 2022
-
fix: debug prints the password in plain text
Signed-off-by: Francisco Buceta <frbuceta@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1a863f3 - Browse repository at this point
Copy the full SHA 1a863f3View commit details
Commits on Aug 4, 2022
-
fix: improve filter sanitisation
Add sanitisation of user-input for `contains` LoopBack filter which may allow for arbitrary SQL injection. Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for d57406c - Browse repository at this point
Copy the full SHA d57406cView commit details
Commits on Aug 6, 2022
-
* fix: improve filter sanitisation (Rifa Achrinza) * fix: debug prints the password in plain text (Francisco Buceta) * docs: add SECURITY.md (Diana Lau) * docs: update coc (Diana Lau) * docs: add code of conduct (Diana Lau) Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for c684889 - Browse repository at this point
Copy the full SHA c684889View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v5.4.0...v5.5.1