Skip to content

3052102 revisionable#1

Open
dpi wants to merge 11 commits into
8.x-1.xfrom
3052102-revisionable
Open

3052102 revisionable#1
dpi wants to merge 11 commits into
8.x-1.xfrom
3052102-revisionable

Conversation

@dpi
Copy link
Copy Markdown
Owner

@dpi dpi commented May 2, 2019

@dpi dpi changed the base branch from linkychecker-external-internalpath to 8.x-1.x May 2, 2019 12:25
@dpi dpi force-pushed the 3052102-revisionable branch from 2c44543 to 41a1541 Compare May 3, 2019 06:13
@dpi dpi force-pushed the 3052102-revisionable branch from 3876719 to 910f26f Compare May 19, 2019 14:38
@dpi dpi force-pushed the 3052102-revisionable branch from 910f26f to 64cbada Compare May 19, 2019 14:54
Comment thread linky.post_update.php
Comment thread linky.post_update.php
// Update existing fields.
$fieldStorageDefinitions['changed']->setRevisionable(TRUE);
$fieldStorageDefinitions['link']->setRevisionable(TRUE);
$fieldStorageDefinitions['langcode']->setRevisionable(TRUE);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This entity is not translatable why do have a langcode field and why are we making it revisionable?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

the langcode field already exists, and entity manager complains if i dont do this.

@dpi dpi assigned dpi and unassigned dpi May 22, 2019
Comment thread linky.post_update.php
->setInitialValueFromField('user_id');


// Add revision created date field.
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

great gap of china ^

Comment thread src/Entity/Linky.php
$fields['revision_log']->setDisplayConfigurable('form', TRUE);


$fields['user_id']->setLabel(new TranslatableMarkup('Authored by'))
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

the great gap wraps around

Comment thread src/Form/LinkyForm.php
*/
protected function getNewRevisionDefault() {
// Turn on revision creation by default.
return TRUE;
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Hmm, im indifferent.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's leave it for now.

Comment thread src/LinkyInterface.php
* @ingroup linky
*/
interface LinkyInterface extends ContentEntityInterface, EntityChangedInterface, EntityOwnerInterface {
interface LinkyInterface extends ContentEntityInterface, EntityChangedInterface, EntityOwnerInterface, RevisionLogInterface {
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Thanks!

Comment thread linky.install
/**
* Convert linky ID column to unsigned.
*/
function linky_update_8101() {
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

lets camelCase

@dpi dpi force-pushed the 3052102-revisionable branch from c617f9e to e664cf6 Compare May 22, 2019 09:54
@jibran
Copy link
Copy Markdown
Contributor

jibran commented Jun 24, 2020

LOL, I just commented on the issue. 🙂

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