Commit Graph

12311 Commits

Author SHA1 Message Date
Alessio Gravili
eb82ee457c Merge remote-tracking branch 'origin/beta' into feat/on-demand-rsc 2024-11-11 08:45:41 -07:00
Alessio Gravili
cc0b88a078 lexical tests: ensure blocks are rendered 2024-11-11 08:43:08 -07:00
Nate
26691377d2 chore: update README.md asset URL (#9104)
Updated README asset URL

<!--

Thank you for the PR! Please go through the checklist below and make
sure you've completed all the steps.

Please review the
[CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md)
document in this repository if you haven't already.

The following items will ensure that your PR is handled as smoothly as
possible:

- PR Title must follow conventional commits format. For example, `feat:
my new feature`, `fix(plugin-seo): my fix`.
- Minimal description explained as if explained to someone not
immediately familiar with the code.
- Provide before/after screenshots or code diffs if applicable.
- Link any related issues/discussions from GitHub or Discord.
- Add review comments if necessary to explain to the reviewer the logic
behind a change

### What?
Update README asset URL for hero

### Why?
Reflect latest Payload branding

### How?
URL change for correct asset

-->
2024-11-11 10:41:48 -05:00
Paul
8201a6cacd chore(templates): remove old ecommerce template (#8916)
removes the previous v2 ecommerce template from the repo ahead of v3
launch until ecomm v3 is ready
2024-11-11 10:19:24 -05:00
Nate
d7fc944792 fix: update README with new asset, image URL (#9099) 2024-11-11 10:18:11 -05:00
Jarrod Flesch
faeef5bc93 chore: improve reliablity of autosave expectation 2024-11-11 09:56:49 -05:00
Elliot DeNolf
0c19afcf91 chore(release): v3.0.0-beta.127 [skip ci] v3.0.0-beta.127 2024-11-11 09:56:14 -05:00
Sasha
0a15388edb feat(db-postgres): add point field support (#9078)
### What?
Adds full support for the point field to Postgres and Vercel Postgres
adapters through the Postgis extension. Fully the same API as with
MongoDB, including support for `near`, `within` and `intersects`
operators.

Additionally, exposes to adapter args:
*
`tablesFilter`https://orm.drizzle.team/docs/drizzle-kit-push#including-tables-schemas-and-extensions.
* `extensions` list of extensions to create, for example `['vector',
'pg_search']`, `postgis` is created automatically if there's any point
field

### Why?
It's essential to support that field type, especially if the postgres
adapter should be out of beta on 3.0 stable.

### How?
* Bumps `drizzle-orm` to `0.36.1` and `drizzle-kit` to `0.28.0` as we
need this change https://github.com/drizzle-team/drizzle-orm/pull/3141
* Uses its functions to achieve querying functionality, for example the
`near` operator works through `ST_DWithin` or `intersects` through
`ST_Intersects`.
* Removes MongoDB condition from all point field tests, but keeps for
SQLite

Resolves these discussions:
https://github.com/payloadcms/payload/discussions/8996
https://github.com/payloadcms/payload/discussions/8644
2024-11-11 09:31:47 -05:00
Jarrod Flesch
b841f01da5 chore: set defaults for version max docs on globals and collections 2024-11-11 09:15:43 -05:00
Alessio Gravili
2e816614ac fix broken upload file restoration in fields and admin test suites. No more console errors about payload.jpg not being found 2024-11-10 21:39:32 -07:00
Jarrod Flesch
0c4ec43460 fix: upload test order 2024-11-10 23:27:56 -05:00
Alessio Gravili
50bab5797c fix admin-root test suite 2024-11-10 20:42:38 -07:00
Alessio Gravili
de9acedaf4 maybe fix admin-root test suite 2024-11-10 20:33:50 -07:00
Alessio Gravili
6d6370ca5e fix auth and access-control test suites 2024-11-10 20:27:05 -07:00
Alessio Gravili
a3360b5d45 fix script for running all e2e tests 2024-11-10 20:08:03 -07:00
Alessio Gravili
e6f73e0c0d make extra sure that the memorydb is started, even if runInit retries 2024-11-10 20:03:11 -07:00
Alessio Gravili
f336b2a41e fix last int test 2024-11-10 19:58:52 -07:00
Alessio Gravili
7ed2859657 add ability to disable lint-staged via DISABLE_HUSKY environment variaböe 2024-11-10 19:56:05 -07:00
Alessio Gravili
d3c5cf7aff for reliability, always ensure indexes between every test case run 2024-11-10 19:12:54 -07:00
Alessio Gravili
bc3c949d95 fix incorrect importMap import for admin-root test suite 2024-11-10 18:51:56 -07:00
Alessio Gravili
ec7028ad5b fix jest not logging anything until entire test suite has finished 2024-11-10 18:49:27 -07:00
Alessio Gravili
6d2a5ddafe remove lie in console.log 2024-11-10 18:30:42 -07:00
Alessio Gravili
b83a7f2f37 make running e2e tests more reliable 2024-11-10 18:25:22 -07:00
Alessio Gravili
8deab489df fix incorrect importMap import for admin-root test suite 2024-11-10 14:03:04 -07:00
Alessio Gravili
eab9acb35d ensure mongo memory server is started when running e2e tests in CI 2024-11-10 13:51:54 -07:00
Ruy Monteiro
a421503111 docs(storage-uploadthing): fix typo in README.md (#9090) 2024-11-10 07:59:46 +00:00
Alessio Gravili
150a31b339 passing int tests 2024-11-10 00:38:43 -07:00
Alessio Gravili
6c3e27288e log env variables 2024-11-10 00:35:09 -07:00
Alessio Gravili
3f2566a191 ensure matching react versions 2024-11-10 00:32:58 -07:00
Nathan Clevenger
b86594f3f9 docs: fixed typo in onSuccess (#9096)
Changed `if the task fails` to `if the task succeeds`
2024-11-10 00:23:32 -07:00
Alessio Gravili
8bb994fc6c fix: ensure runE2e command passed down env variables and prod flag to run dev command 2024-11-10 00:22:13 -07:00
Alessio Gravili
3a48251219 fix running dev for nested test suite paths 2024-11-10 00:19:13 -07:00
Alessio Gravili
694040c8bc debug why failing tests show as passing 2024-11-10 00:08:52 -07:00
Jacob Fletcher
d5c9628958 Merge branch 'beta' into feat/on-demand-rsc 2024-11-08 17:31:26 -05:00
Jacob Fletcher
df6578183a properly initializes new doc drawer state for join field and renames renderDocument callback 2024-11-08 17:27:03 -05:00
Jarrod Flesch
a93da8625b chore: passing uploads 2024-11-08 17:21:11 -05:00
Jarrod Flesch
859726688e chore: fixes tests using previous selectors 2024-11-08 17:20:44 -05:00
Jacob Fletcher
7fb5b60932 fix join field query when creating new doc 2024-11-08 16:56:18 -05:00
Jacob Fletcher
46ebecfde4 updates underlying table after creating new from join field 2024-11-08 16:16:43 -05:00
Jacob Fletcher
6ea473aae8 gets initial columns within renderTable 2024-11-08 16:16:43 -05:00
Dan Ribbens
e3172f1e39 fix: migrateRefresh migrates without previously ran migrations (#9073)
fix: migrateRefresh migrates without previously ran migrations
chore: adds tests for database migrate:fresh and migrate:refresh

---------

Co-authored-by: Sasha <64744993+r1tsuu@users.noreply.github.com>
2024-11-08 15:35:46 -05:00
Dan Ribbens
ee117bb616 fix!: handle custom id logic in mongodb adapter (#9069)
### What?
Moved the logic for copying the data.id to data._id to the mongoose
adapter.

### Why?
If you have any hooks that need to set the `id`, the value does not get
sent to mongodb as you would expect since it was copied before the
beforeValidate hooks.

### How?
Now data._id is assigned only in the mongodb adapter's `create`
function.

BREAKING CHANGES:
When using custom ID fields, if you have any collection hooks for
beforeValidate, beforeChange then `data._id` will no longer be assigned
as this happens now in the database adapter. Use `data.id` instead.
2024-11-08 15:34:19 -05:00
Alessio Gravili
e0f85b5f05 Merge remote-tracking branch 'origin/beta' into feat/on-demand-rsc 2024-11-08 13:30:20 -07:00
Alessio Gravili
6b2c939afd update packages 2024-11-08 13:20:34 -07:00
Alessio Gravili
20b09a8213 update lockfile 2024-11-08 13:18:24 -07:00
Alessio Gravili
7c44609af4 revert dumb code I wrote 2024-11-08 13:13:12 -07:00
Alessio Gravili
b0f243632d fix: ensure richext rscs import from client bundle 2024-11-08 13:07:41 -07:00
Jacob Fletcher
4df00f4b36 fix join field filter options 2024-11-08 14:59:02 -05:00
Alessio Gravili
7aa4a5650c fix(ui): ensure rscs not exported from client bundle imported from client bundle, in order to not duplicate components (& thus contexts) in the final bundle 2024-11-08 12:58:31 -07:00
Jacob Fletcher
1cae6cf997 returns resolved promise from getClientConfig 2024-11-08 14:33:26 -05:00