James Mikrut
51474fa661
feat: allows mongoose schemaOptions to be configured ( #7099 )
...
## Description
This PR adds the ability to configure Mongoose's `schemaOptions`, which exposes more control about how Mongoose operates internally. For example, you can now disable `strict` mode in Mongoose to be able to preserve / surface data in MongoDB that is not reflected in Payload schemas.
- [x] I have read and understand the
[CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md )
document in this repository.
## Type of change
- [x] New feature (non-breaking change which adds functionality)
## Checklist:
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] Existing test suite passes locally with my changes
- [ ] I have made corresponding changes to the documentation
2024-07-16 12:58:55 -04:00
Jarrod Flesch
ff70fd9813
feat: draft validation ( #6746 )
...
Allows draft validation to be enabled at the config level.
You can enable this by:
```ts
// ...collectionConfig
versions: {
drafts: {
validate: true // defaults to false
}
}
```
2024-06-13 11:08:04 -04:00
Jarrod Flesch
3fccd34abe
fix: GraphQL nested relationships not respecting req locale ( #6117 )
2024-04-29 16:32:33 -04:00
Elliot DeNolf
62601c54a7
chore: update .vscode/settings.json
2024-04-24 08:59:45 -04:00
Jacob Fletcher
303f0d6227
chore(plugin-search): scaffolds tests ( #4511 )
2023-12-14 13:06:19 -05:00
Jacob Fletcher
2ad7340154
fix(live-preview): field recursion and relationship population ( #4045 )
2023-11-08 17:28:35 -05:00
Jarrod Flesch
acba5e482b
fix: focal and cropping issues, adds test ( #4039 )
2023-11-07 15:20:57 -05:00
Jarrod Flesch
46fc41cbd9
fix: incorrect duplication of data in admin ui ( #3907 )
2023-10-27 22:41:33 -04:00
Elliot DeNolf
6cfa8a373e
test: plugin cloud storage suite ( #3884 )
...
* chore: proper admin mock for adapters
* test: add plugin-cloud-storage dev
2023-10-26 09:35:49 -04:00
James
e6f0d35985
fix : #3541
2023-10-10 14:07:26 -04:00
Elliot DeNolf
cf26155995
chore: sync logger for prompts, adjust nodemon
2023-10-03 12:34:48 -04:00
Alessio Gravili
426efcaa08
chore: unbreak vscode config launch command
2023-10-02 23:32:15 +02:00
James
fa4821adef
chore: add declare pattern to generated types
2023-10-02 10:45:19 -04:00
James
556620a94e
chore: enables bundle analyzer in webpack
2023-10-01 18:55:01 -04:00
James
44b10cc9b4
chore: webpack published package bugs
2023-10-01 16:20:18 -04:00
James
e6a0ed5e1c
chore: vite dev script
2023-10-01 15:07:21 -04:00
Elliot DeNolf
9c0aadd046
chore: migration dir and migration template updates
2023-09-25 23:27:58 -04:00
James
7fdf77cf3e
chore: bugs with sort, graphql tests with postgres
2023-09-19 10:50:04 -04:00
Elliot DeNolf
79f9ef2481
chore: migration improvements ( #3335 )
...
* chore: better migrationDir handling
* chore: add .migrations to gitignore
* chore: migration cli debugging
* docs: stub out each migration command
2023-09-14 14:23:17 -04:00
Alessio Gravili
bf673096e3
chore: add .vscode/settings.json
2023-09-07 15:23:16 +02:00
Alessio Gravili
ae7d6f97d2
chore: formatting and linting ( #3261 )
...
* chore: lint packages/payload
* chore: lint packages/db-postgres
* chore: lint packages/db-mongodb
* chore: update eslintrc exclusion rules
* chore: update eslintrc exclusion rules
* chore: lint misc files
* chore: run prettier through packages
* chore: run eslint on payload again
* chore: prettier misc files
* chore: prettier docs
2023-09-01 17:39:44 +02:00
Alessio Gravili
373e89a6ba
chore: eslint, turbo and various configs
2023-09-01 16:59:45 +02:00
Alessio Gravili
e24ad67168
chore: migrate to pnpm
2023-08-23 00:21:11 +02:00
Elliot DeNolf
24aa1f27c1
feat: handle postgres numeric field for batch number comparison
2023-08-14 14:02:56 -04:00
Elliot DeNolf
791ed3be50
feat: conditionally use transactions
2023-08-10 13:54:04 -04:00
Elliot DeNolf
8685ca6e94
feat: dev push migrations handling and prompt
2023-08-07 16:23:02 -04:00
James
a1388630d0
chore: adds postgres test suite
2023-08-02 19:57:22 -04:00
James
f69e5949e1
chore: abstracts adapters to be their own package
2023-07-31 12:42:21 -04:00
Elliot DeNolf
2198445df9
Feat/migrations cli ( #2940 )
...
* feat: migrate cli call db adapter
* feat: mongoose adapter migrate:create
* feat: implement migrate command
* feat: use mongooseAdapter in test config
* feat: use filename as migration name
* feat: intelligently execute migrations, status table
* feat: implement migrate:down
* feat: implement migrate:reset
* feat: implement migrate:refresh
* feat: move common adapter operations to database/migrations dir
* feat: delete migrations instead of storing ran property
* feat: createMigration cleanup
* feat: clean up logging and add duration to output
* chore: export type, handle graphQL false
* chore: simplify getting latest batch number
* chore: remove existing migration logging noise
* feat: remove adapter export from top level
* chore: fix some db types
2023-07-07 11:02:56 -04:00
James
05ed6d9721
chore: stubs out global versions queries
2023-06-12 21:38:10 -04:00
Alessio Gravili
bd017bf56b
chore: update launch config ( #2772 )
2023-06-05 12:22:58 -04:00
Alessio Gravili
ce7acff6d6
chore: add alternative vscode launch config ( #2759 )
2023-06-05 12:01:51 -04:00
James
690ec7ce24
chore: updates vscode debug script
2023-01-19 15:20:28 -05:00
James
73af283e1c
feat: ensures compatibility with azure cosmos and aws documentdb
2023-01-09 18:59:20 -05:00
James
68e7c41fdc
feat: finishes tabs field
2022-07-15 18:40:31 -07:00
James
8589fdefda
feat: reorganizes mongo connection
2022-07-13 13:17:00 -07:00
James
da5684df27
feat: abstracts revisions components for reuse in globals
2021-12-01 12:21:56 -05:00
James
6dd1b0e033
feat: adds field types to type generation
2021-11-16 20:24:13 -05:00
James
a2fa30fad2
fix: jest debug testing
2021-07-27 17:55:14 -04:00
James
300536033f
fix: forces fallbackLocale to null in update ops
2021-02-05 14:47:09 -05:00
James
d510961f6c
ensures relationship fields can be cleared
2020-12-24 09:57:41 -05:00
Elliot DeNolf
551c249e39
refactor: migrate to typescript
2020-11-20 13:39:18 -05:00
Elliot DeNolf
0da92c20ea
Add jest debug current file and adjust Jest timeout
2020-07-30 09:46:52 -04:00
James
8016436433
adds env to debug scripts
2020-06-12 17:43:56 -04:00
Elliot DeNolf
932dfe6a54
Skip node internal files when debugging
2020-05-14 14:57:36 -04:00
James
0961a3d499
fixes bug with nested repeaters losing their data
2020-04-21 18:14:09 -04:00
James
192e577300
fixes bugs within refresh handler
2020-04-19 12:29:16 -04:00
James
d64909b3eb
removes settings json and ignores it for future
2020-04-14 15:13:58 -04:00
Elliot DeNolf
375f046cfa
Resolve conflicts
2020-04-12 21:46:11 -04:00
James
f7e72d28f7
fixes bug with first-register route
2020-04-08 08:59:38 -04:00