Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Changed long name returned by Operation.className property to the short one #1514

Merged
merged 1 commit into from
Aug 27, 2018

Conversation

oskarwrobel
Copy link
Contributor

@oskarwrobel oskarwrobel commented Aug 24, 2018

Suggested merge commit message (convention)

Feature: Changed long name returned by Operation.className property to the short one. Closes ckeditor/ckeditor5#4403.


Additional information

For example – encountered issues, assumptions you had to make, other affected tickets, etc.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.617% when pulling a78bbe7 on t/1513 into 7d8de56 on master.

@@ -112,7 +112,7 @@ export default class Operation {
* @type {String}
*/
static get className() {
return 'engine.model.operation.Operation';
return 'Operation';
}
Copy link

Choose a reason for hiding this comment

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

I think you should never ask for this property of the base class. I think we should remove this method or replace it with throw.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree that this method should be never used (in source code) for the base class. But If you want to drop this method for Operation class let's do it in a separate ticket because it needs some fixes in toJSON() method and in tests.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants