You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by AlexanderShoshin <gi...@git.apache.org> on 2017/04/07 12:40:37 UTC

[GitHub] zeppelin pull request #2233: [MINOR] Add paragraph to note

GitHub user AlexanderShoshin opened a pull request:

    https://github.com/apache/zeppelin/pull/2233

    [MINOR] Add paragraph to note

    ### What is this PR for?
    We need to add an ability of adding custom _Paragraph_ to a _Note_. This will make it easier to write _Note_ and _Paragraph_ tests. At the moment all paragraphs are created inside _Note_ class.
    
    This refactoring will allow to write a test for ZEPPELIN-1856 issue.
    
    
    ### What type of PR is it?
    [Refactoring]
    
    ### Todos
    * [ ] - Rename `addParagraph()` -> `addNewParagraph()` and `insertParagraph()` -> `insertNewParagraph()`. These names will describe what mathods do: create new paragraph and add it to the note.
    * [ ] - Remove duplicated code from `addNewParagraph()` and `insertNewParagraph()` methods.
    * [ ] - Add methods `addParagraph()` and `insertParagraph()`, which receive a _Paragraph_ instance in parameters and add it to the _Note_.
    
    ### Questions:
    * Does the licenses files need update? **no**
    * Is there breaking changes for older versions? **no**
    * Does this needs documentation? **no**


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/AlexanderShoshin/zeppelin add-paragraph-to-note

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zeppelin/pull/2233.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2233
    
----
commit 4391f6babe31083b143a8ae260c5feeea5b919cf
Author: Alexander Shoshin <al...@epam.com>
Date:   2017-04-07T08:44:32Z

    rename addParagraph() -> addNewParagraph(), insertParagraph() -> insertNewParagraph()

commit b0b1dd4841096e9090ab08f8ef55dd15c2c44698
Author: Alexander Shoshin <al...@epam.com>
Date:   2017-04-07T08:54:50Z

    remove duplicated code

commit 676db154139a48a30dfc93ce19ca4937f85bae2c
Author: Alexander Shoshin <al...@epam.com>
Date:   2017-04-07T09:02:07Z

    added methods addParagraph() and insertParagrepg()

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin pull request #2233: [MINOR] Add paragraph to note

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/zeppelin/pull/2233


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2233: [MINOR] Add paragraph to note

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/zeppelin/pull/2233
  
    sounds reasonable. are your TO-DO completed and this PR ready for review?
    If not, it's customary to have `[WIP]` in your PR title.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2233: [MINOR] Add paragraph to note

Posted by jongyoul <gi...@git.apache.org>.
Github user jongyoul commented on the issue:

    https://github.com/apache/zeppelin/pull/2233
  
    LGTM


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2233: [MINOR] Add paragraph to note

Posted by AlexanderShoshin <gi...@git.apache.org>.
Github user AlexanderShoshin commented on the issue:

    https://github.com/apache/zeppelin/pull/2233
  
    This PR is ready for review.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2233: [MINOR] Add paragraph to note

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the issue:

    https://github.com/apache/zeppelin/pull/2233
  
    LGTM and merge to master if no further discussions.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #2233: [MINOR] Add paragraph to note

Posted by AlexanderShoshin <gi...@git.apache.org>.
Github user AlexanderShoshin commented on the issue:

    https://github.com/apache/zeppelin/pull/2233
  
    Hi Felix,
    thank you for looking through my PR.
    
    Method name must correspond an action it performs. Methods with names like `addSomething()` usually mean that we must pass this _something_ into the method as an input parameter. I have renamed an `addParagraph()` method because it doesn't receive a `Paragraph` instance but creates a new one instead. This also gave me an opportunity to add a new `addParagraph()` method which does receive a `Paragraph` instance.
    
    As for the `Note.addNewParagraph()` method name it seem to me that it sounds like "create new paragraph and add it to the `Note`". But if such name is still not clear maybe we should choose another one like `createNewParagraph()` or  `createAndAddParagraph()` or something like this. What do you think?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---