Kendell Joseph
f7ac9ff52a
chore: adds docs for collection operations
2024-09-06 14:54:12 -04:00
Elliot DeNolf
b149180db4
ci: remove unnecessary checkout ref
2024-09-06 01:55:56 -04:00
Elliot DeNolf
4efb9dd867
ci: release comment mod ( #8084 )
...
Release commenter to comment on PRs/issues that have had an associated
release.
NOTE: Commenting is currently disabled. Will be keeping an eye on the CI
output as to when to enable.
Heavily modified version of
[apexskier/github-release-commenter](https://github.com/apexskier/github-release-commenter ).
Updates:
- Filters to closed PRs only
- Adds tag filter to support non-linear releases
- Better logging
- Moved to pnpm
- Uses @vercel/ncc for packaging
2024-09-05 22:53:11 -04:00
Elliot DeNolf
7002ca78b9
ci: add workflow_dispatch to post-release for debugging
2024-09-05 13:28:36 -04:00
Elliot DeNolf
44ca3a4073
ci: post-release commenter
2024-09-05 11:26:59 -04:00
Elliot DeNolf
dc7c952ace
chore(release): db-postgres/0.8.6 [skip ci]
db-postgres/0.8.6
2024-09-04 17:08:44 -04:00
Elliot DeNolf
c8a659cd39
chore(release): payload/2.28.0 [skip ci]
payload/2.28.0
v2.28.0
2024-09-04 17:06:53 -04:00
Kendell Joseph
6ba293c0f8
feat: collections can use custom database operations ( #7675 )
...
## Description
Adds option to override default database operations for a collection
```ts
import { CollectionConfig } from 'payload/types';
export const Collection: CollectionConfig = {
slug: 'example-collection',
// Database operations for this collection
db: {
create: () => {},
deleteMany: () => {},
deleteOne: () => {},
find: () => {},
findOne: () => {},
updateOne: () => {}
},
fields: [
{
name: 'someField',
type: 'text',
},
],
}
```
Co-authored-by: Dan Ribbens <dan.ribbens@gmail.com >
2024-09-04 16:44:40 -04:00
Sasha
96a624ad5c
fix(db-postgres): query hasMany text/number in array/blocks ( #8033 )
...
## Description
Fixes https://github.com/payloadcms/payload/issues/7671
Copy of https://github.com/payloadcms/payload/pull/8003 to 2.0
- [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
<!-- Please delete options that are not relevant. -->
- [x] Bug fix (non-breaking change which fixes an issue)
## 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
2024-09-04 11:52:40 -04:00
Himanshu
545949dafc
docs: fix typo (modifing => modifying) ( #7846 )
2024-09-01 18:58:41 -04:00
Bruno Crosier
d9f61bbdc8
chore: update incorrect plurality in Italian translations ( #7866 )
...
Currently the `{{label}}` in `noResults` translation is a plural.
In the italian translation, the words around `{{label}}` imply that it
would be singular.
This fixes it so that the translation works for a pluralized label
Before (incorrect)
<img width="1140" alt="image"
src="https://github.com/user-attachments/assets/40c62d79-4bc6-4523-9f7c-c07808e7e79f ">
ChatGPT confirming it's currently incorrect:
https://chatgpt.com/share/477a3d53-d988-4416-afbf-eab4455779e2
2024-09-01 18:57:52 -04:00
DragnovDC
be06579b3e
chore(templates): change import in ecommerce template to be type-only ( #8019 )
...
Linter Error: Import 'Header' conflicts with local value, so must be
declared with a type-only import when 'isolatedModules' is
enabled.ts(2865)
2024-09-01 18:51:01 -04:00
Jayce Pulsipher
25e9bc62db
fix(db-postgres): migration exit codes ( #7873 )
...
## Description
Fixes #7031 for v2
- [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] Bug fix (non-breaking change which fixes an issue)
## Checklist:
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] Existing test suite passes locally with my changes
- [ ] I have made corresponding changes to the documentation
Co-authored-by: Jayce Pulsipher <jpulsipher@nav.com >
2024-08-30 12:15:17 -04:00
Elliot DeNolf
aca567634b
chore(release): plugin-cloud/3.0.2 [skip ci]
plugin-cloud/3.0.2
2024-08-28 12:34:20 -04:00
Elliot DeNolf
1f0934877c
fix(plugin-cloud): better logging on static handler ( #7924 )
...
Better logging on static handler.
2024-08-28 12:28:47 -04:00
Elliot DeNolf
61da010991
chore: update v3 issue template ( #7901 )
...
Mention `payload info` command when providing versions, which is now a
textarea.
Note: that individual version fields are now gone and are no longer
required/enforced. We may need to come up with a better solution if
issues are being submitted without this info.
2024-08-27 22:48:11 -04:00
Elliot DeNolf
ab9074220a
chore(release): payload/2.27.0 [skip ci]
payload/2.27.0
v2.27.0
2024-08-26 14:01:47 -04:00
Paul
afa90a4362
chore: update docs for stripe plugin webhook ( #7763 )
...
Closes https://github.com/payloadcms/payload/issues/7740
2024-08-19 13:12:24 -06:00
Elliot DeNolf
bc0516da90
chore(dependabot): add .github/actions dir
2024-08-14 22:20:42 -04:00
Elliot DeNolf
46daf473c8
chore(dependabot): add .github/workflows dir
2024-08-14 22:02:01 -04:00
Elliot DeNolf
337b8ccbf3
chore: add packageManager property for dependabot
2024-08-14 21:52:06 -04:00
Elliot DeNolf
ba2e4c278f
chore: remove explicit dependabot versioning-strategy
2024-08-14 21:23:02 -04:00
Elliot DeNolf
3196036ae9
chore: dependabot time format
2024-08-14 21:19:43 -04:00
Elliot DeNolf
9bc3ad5159
chore: add dependabot.yml
2024-08-14 21:17:28 -04:00
Alessio Gravili
94d18e8d74
feat: upgrade react-toastify dependency, and upgrade to pnpm v9 in our monorepo ( #7667 )
2024-08-14 20:05:04 -04:00
Patrik
c624eea0d8
fix: update state of field if either valid status or errorMessage changes ( #7632 )
...
## Description
Fixes #6413
- [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] Bug fix (non-breaking change which fixes an issue)
## Checklist:
- [x] Existing test suite passes locally with my changes
2024-08-13 11:23:51 -04:00
Paul
f97627092c
feat: add support for custom image size file names ( #7637 )
...
Add support for custom file names in images sizes
```ts
{
name: 'thumbnail',
width: 400,
height: 300,
generateImageName: ({ height, sizeName, extension, width }) => {
return `custom-${sizeName}-${height}-${width}.${extension}`
},
}
```
2024-08-12 14:36:09 -06:00
Elliot DeNolf
f00183029e
chore(release): richtext-lexical/0.11.3 [skip ci]
richtext-lexical/0.11.3
2024-08-09 09:39:40 -04:00
Elliot DeNolf
b6c5aaa966
chore(release): db-mongodb/1.7.2 [skip ci]
db-mongodb/1.7.2
2024-08-09 09:39:18 -04:00
Elliot DeNolf
517aaa0665
chore(release): payload/2.26.0 [skip ci]
payload/2.26.0
v2.26.0
2024-08-09 09:37:40 -04:00
Jarrod Flesch
2c2ffe406f
chore: allow password to be mutated by hooks ( #7537 )
...
Fixes https://github.com/payloadcms/payload/issues/7531
Allows passwords to be updated in hooks.
2024-08-09 09:27:09 -04:00
James Mikrut
7f39afa192
feat: adds classnames to edit, list views ( #7595 )
...
## Description
Adds classnames to List and Edit views to be able to more easily target
individual entity views via CSS / similar.
- [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] Existing test suite passes locally with my changes
2024-08-08 19:44:09 -04:00
Patrik
fc4d24aa88
fix: render singular label for ArrayCell when length is 1 ( #7585 )
...
## Description
Fixes #6099

- [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] Bug fix (non-breaking change which fixes an issue)
## Checklist:
- [x] Existing test suite passes locally with my changes
2024-08-08 15:44:35 -04:00
Patrik
efa56cefc1
fix: filtering by non-poly relationships with not_equals operator ( #7573 )
...
## Description
Fixes #5212
Fixes #6278
- [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] Bug fix (non-breaking change which fixes an issue)
## 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
2024-08-08 11:22:47 -04:00
Patrik
907d7d1d3a
fix: filtering by polymorphic relationships with drafts enabled ( #7565 )
...
## Description
Fixes #6880
- [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] Bug fix (non-breaking change which fixes an issue)
## 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
2024-08-07 15:31:47 -04:00
Patrik
eca1517237
fix: deprecated inflight package ( #6558 )
...
Fixes #6492
2024-08-07 10:32:17 -04:00
Patrik
9865ae998b
fix: enable relationship & upload field population in versions ( #7533 )
2024-08-06 12:09:53 -04:00
Patrik
1a0ef4824b
fix: prevents hasMany text going outside of input boundaries ( #7454 )
...
## Description
Fixes #6034
`Before`:

`After`:

- [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] Bug fix (non-breaking change which fixes an issue)
## Checklist:
- [x] Existing test suite passes locally with my changes
2024-08-05 17:09:29 -04:00
Radosław Kłos
39e110e633
feat: adds upload's relationship thumbnail ( #5015 )
...
## Description
I've made an implementation of the feature requested here:
https://github.com/payloadcms/payload/discussions/3407
Before:

After:

- [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
<!-- Please delete options that are not relevant. -->
- [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
2024-08-01 15:09:59 +01:00
Paul
3e780b9815
feat(ui): expose custom errors in delete many ( #7439 )
...
Exposes any custom errors out to the delete many toast as well.
Closes https://github.com/payloadcms/payload/issues/7214

2024-07-31 17:25:23 -04:00
Dan Ribbens
a308d6384f
fix(db-postgres): localized array inside blocks field ( #7458 )
...
fixes #5240
Copy of https://github.com/payloadcms/payload/pull/7457
2024-07-31 16:31:19 -04:00
Jarrod Flesch
492ed30cb8
chore: fix generic usage, fixes CI ( #7421 )
2024-07-29 16:28:15 -04:00
Francisco Lourenço
fca5a404db
fix: previousValue missing from ValidateOptions type ( #6931 )
2024-07-29 11:49:19 -04:00
Jason Toups
b13f7e8843
chore: updates all of the Readme localhost:3000 Code to Links ( #7252 )
2024-07-29 11:22:50 -04:00
Ante
25dfdb66cd
chore: croatian translation improvements ( #7377 )
2024-07-29 11:20:40 -04:00
Patrik
9c9e6896a5
fix(payload): retained date milliseconds ( #7393 )
...
## Description
Fixes #6108
Defaults `milliseconds` to `0` for date field picker.
`Before`:

`After`:

- [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] Bug fix (non-breaking change which fixes an issue)
## Checklist:
- [x] Existing test suite passes locally with my changes
2024-07-26 16:16:45 -04:00
Elliot DeNolf
a3085435ef
chore(release): db-mongodb/1.7.1 [skip ci]
db-mongodb/1.7.1
2024-07-26 11:38:00 -04:00
Elliot DeNolf
1466657e8f
chore(release): payload/2.25.0 [skip ci]
payload/2.25.0
v2.25.0
2024-07-26 11:36:14 -04:00
James Mikrut
1348483648
fix: preserves objectids in deepCopyObject ( #7385 )
...
## Description
The `deepCopyObject` function was cannibalizing ObjectIDs, which
conflicted with the ability to surface them from the MongoDB adapter.
Now, the `deepCopyObject` function will simply pass through ObjectIDs
rather than break them.
2024-07-26 11:10:16 -04:00
Patrik
5321098d7e
fix(payload): properly handles 0 value number fields in list view ( #7364 )
...
## Description
Fixes #5510
- [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] Bug fix (non-breaking change which fixes an issue)
## Checklist:
- [x] Existing test suite passes locally with my changes
2024-07-25 15:35:35 -04:00