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

ENH Save relations on link creation #146

Merged

Conversation

emteknetnz
Copy link
Member

Issue #145

@emteknetnz emteknetnz marked this pull request as draft December 20, 2023 03:13
@emteknetnz emteknetnz force-pushed the pulls/4/ajax-relations branch 7 times, most recently from 6e1b488 to c8fb1a6 Compare December 21, 2023 01:54
@emteknetnz emteknetnz marked this pull request as ready for review December 21, 2023 01:54
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

Can you please rebase? The diff is a little weird at the moment, looks like tests are being removed but I don't think they are.

@emteknetnz emteknetnz force-pushed the pulls/4/ajax-relations branch 2 times, most recently from 864a07f to 9ea32af Compare December 21, 2023 20:50
@emteknetnz
Copy link
Member Author

Done

@emteknetnz emteknetnz force-pushed the pulls/4/ajax-relations branch 4 times, most recently from 9112711 to bd66db8 Compare December 21, 2023 22:03
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

This PR has changed the order in which allowed links classes are displayed. The old order was better as it seems to be from top to bottom the most to least likely type of link to be added.
Before:
image
After:
image

Other than that, mostly just questions rather than actually requesting changes this time around.

client/src/components/LinkField/LinkField.js Outdated Show resolved Hide resolved
src/Controllers/LinkFieldController.php Show resolved Hide resolved
src/Controllers/LinkFieldController.php Outdated Show resolved Hide resolved
src/Controllers/LinkFieldController.php Show resolved Hide resolved
src/Form/MultiLinkField.php Show resolved Hide resolved
tests/php/Form/LinkFieldTest.php Outdated Show resolved Hide resolved
src/Form/Traits/LinkFieldGetOwnerTrait.php Outdated Show resolved Hide resolved
@GuySartorelli
Copy link
Member

Obviously doesn't work when trying to add a link to a record that hasn't been saved to the DB yet - but we'll handle that in a separate card, it's not in scope for this.

@emteknetnz
Copy link
Member Author

Link order changed in this PR - #137

@emteknetnz emteknetnz force-pushed the pulls/4/ajax-relations branch 2 times, most recently from 33e47a9 to 1ae33b8 Compare December 22, 2023 00:15
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

Just #146 (comment) left

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

LGTM

@GuySartorelli GuySartorelli merged commit 80b0867 into silverstripe:4 Dec 22, 2023
10 checks passed
@GuySartorelli GuySartorelli deleted the pulls/4/ajax-relations branch December 22, 2023 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants