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

[WIP] Next CRUD Version #5715

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

[WIP] Next CRUD Version #5715

wants to merge 4 commits into from

Conversation

tabacitu
Copy link
Member

@tabacitu tabacitu commented Nov 7, 2024

The next branch is where we bring together all fixes&features for our next version. This PR is here to document all PRs merged, all breaking changes, all remaining TODOs about this version until launch.

Features

Fixes

Breaking changes

[none, at the moment]

Todos

Things to do before we merge this PR into main:

  • fix tests not running on this branch
  • adapt composer.json requirements to new version

@tabacitu tabacitu self-assigned this Nov 7, 2024
@tabacitu tabacitu changed the title NEXT version of Backpack/CRUD [WIP] NEXT version of Backpack/CRUD Nov 7, 2024
@tabacitu tabacitu changed the title [WIP] NEXT version of Backpack/CRUD [WIP] NEXT version of CRUD Nov 7, 2024
@tabacitu tabacitu changed the title [WIP] NEXT version of CRUD [WIP] Next CRUD Version Nov 7, 2024
@tabacitu tabacitu changed the title [WIP] Next CRUD Version Next CRUD Version Nov 25, 2024
@tabacitu tabacitu changed the title Next CRUD Version [WIP] Next CRUD Version Nov 25, 2024
if(!empty(old())) {
$field['value'] = array_merge(
explode(',',Arr::get(old(), '_order_'.square_brackets_to_dots($field['name'])) ?? ''),
Arr::get(old(), 'clear_'.square_brackets_to_dots($field['name'])) ?? [],
Copy link
Member Author

@tabacitu tabacitu Nov 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish we would prefix all accessory request variables with _. To know that EVERYTHING that starts with _ is not an actual field, but something that the system uses for some purpose.

That would simplify our request-stripping logic, we can just strip out everything that starts with _ by default.

It's a breaking change, but a minor one - unlikely to break anyone's app, unless they've published any of the fields that use this OR have fields in the BD that start with underscore. Then again, it is a breaking change, so it's one more item in the upgrade guide 🤷‍♂️

🟡SHOULD/🔵COULD

pxpm and others added 2 commits December 3, 2024 10:19
* add method to get ajax uploaders

* Apply fixes from StyleCI

[ci skip] [skip ci]

* use an abstract class

* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* refactor uploaders

* Apply fixes from StyleCI

[ci skip] [skip ci]

* refactor rules

* Apply fixes from StyleCI

[ci skip] [skip ci]

* move ajax to PRO, cleanup

* Apply fixes from StyleCI

[ci skip] [skip ci]

* make attributes available for all subfields

* fix tests

* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* upload multiple and upload properly working 🙏

* fixes

* Apply fixes from StyleCI

[ci skip] [skip ci]

* allow the configuration of valueWithoutPath call.

* fix valid upload inside repeatables

* Apply fixes from StyleCI

[ci skip] [skip ci]

* fix condition

* cleanup

* fix

* Apply fixes from StyleCI

[ci skip] [skip ci]

* fix use case for enabling validation after entry is created

* Apply fixes from StyleCI

[ci skip] [skip ci]

* dont save array keys

* fix ajax validation

* fix validation messages

* Apply fixes from StyleCI

[ci skip] [skip ci]

* fixes ValidUpload

* Apply fixes from StyleCI

[ci skip] [skip ci]

* dont json encode if casted in the model

* Apply fixes from StyleCI

[ci skip] [skip ci]

* fix previous file identification in repeatable

* Apply fixes from StyleCI

[ci skip] [skip ci]

* fix getting values

* Apply fixes from StyleCI

[ci skip] [skip ci]

* add fake fields support

* Apply fixes from StyleCI

[ci skip] [skip ci]

* wip add uploaders tests

* Apply fixes from StyleCI

[ci skip] [skip ci]

* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* add pro columns

* fix test suite

* fix tests

* ffix tests

* remove unused test views

* add uploaders to test coverage

* Apply fixes from StyleCI

[ci skip] [skip ci]

* add coverage folder to gitignore

* make tests run faster by not reloading db when not necessary

* add coverage to validation tests

* add fake tests to uploaders

* Apply fixes from StyleCI

[ci skip] [skip ci]

* add more tests

* Apply fixes from StyleCI

[ci skip] [skip ci]

* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* wip

* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* add more upload assets

* fixes

* Apply fixes from StyleCI

[ci skip] [skip ci]

* fix single file

* Apply fixes from StyleCI

[ci skip] [skip ci]

* add image column

* fix tests

* Apply fixes from StyleCI

[ci skip] [skip ci]

* remove hardcoded macro names

* Apply fixes from StyleCI

[ci skip] [skip ci]

* remove double loop, fix single file uploader

* Apply fixes from StyleCI

[ci skip] [skip ci]

* use a big increments and unsigned for primary key

* handle pivot file deletion

* Apply fixes from StyleCI

[ci skip] [skip ci]

* register events for relation models

* Apply fixes from StyleCI

[ci skip] [skip ci]

* fix typo

* Apply fixes from StyleCI

[ci skip] [skip ci]

* fix relationship uploaders

* Apply fixes from StyleCI

[ci skip] [skip ci]

* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* wip

* Apply fixes from StyleCI

[ci skip] [skip ci]

* update temporary time key

* save objects in the macro

---------

Co-authored-by: StyleCI Bot <[email protected]>
* wip

* clean up

* add get uploadedFilesFromRequest to clean up uploaders

* Apply fixes from StyleCI

[ci skip] [skip ci]

* fix type cast

* add summernote uploader

* update summernote

* add summernote

* add more test assets

---------

Co-authored-by: StyleCI Bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready
Development

Successfully merging this pull request may close these issues.

2 participants