Skip to content

Conversation

@jongyoul
Copy link
Member

@jongyoul jongyoul commented Dec 13, 2016

What is this PR for?

Enabling "Personalized Mode" for specific note

What type of PR is it?

[Feature]

Todos

  • - Backend work for supporting that feature
  • - Develop front-end UI

What is the Jira issue?

How should this be tested?

  1. config.personalizedMode = true in note.json
  2. Navigate some jobs in two different browser

Screenshots (if appropriate)

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

@jongyoul
Copy link
Member Author

@cloverhearts @1ambda Can you guys help me to implement some frontend side? @Leemoonsoo Review this please. If I've missed something, let me know.

@cloverhearts
Copy link
Member

Hello, @jongyoul.
What do you think on this mockup?

pmode

@jongyoul jongyoul changed the title [ZEPPELIN-1594] Supported personalized mode [ZEPPELIN-1594] Support personalized mode Dec 14, 2016
@cloverhearts
Copy link
Member

123123ppp

support live mode share
the notes about using the user-to-user mode are reflected in real time.
corrected invalid log name.
only owner can modify personalized mode.

@jongyoul
Copy link
Member Author

jongyoul commented Dec 15, 2016

@minahlee @Leemoonsoo Please test it. @cloverhearts and I have tested but I want you to check it again.

@cloverhearts
Copy link
Member

CI failed.
However, this is a not relate to modifications.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project zeppelin-pig: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /home/travis/build/apache/zeppelin/pig && /usr/lib/jvm/java-7-oracle/jre/bin/java -Xmx2g -Xms1g -Dfile.encoding=UTF-8 -jar /home/travis/build/apache/zeppelin/pig/target/surefire/surefirebooter6134435344985761979.jar /home/travis/build/apache/zeppelin/pig/target/surefire/surefire308229830701668274tmp /home/travis/build/apache/zeppelin/pig/target/surefire/surefire_331449743848135082457tmp
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :zeppelin-pig

@Leemoonsoo
Copy link
Member

Great!!!

I checked this branch and found dynamic form is not being displayed in personalized mode.
Could you check?

ng-if="ticket.principal && ticket.principal !== 'anonymous'"
ng-hide="viewOnly || note.config.personalizedMode === 'true'"
ng-click="toggleNotePersonalizedMode()"
tooltip-placement="bottom" tooltip="Shared mode {{isOwner ? '' : '(owner can change)'}}">
Copy link
Member

Choose a reason for hiding this comment

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

it's nit. but how about "Collaboration mode" instead of "Shared mode" ?
"Shared mode" could confuse user with interpreter "shared" mode.

Copy link
Member

Choose a reason for hiding this comment

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

@Leemoonsoo
Okay! i will fix it.
Thank you for your good idea.

BootstrapDialog.confirm({
closable: true,
title: 'Setting the result display',
message: 'Do you want to personalize your analysis??',
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems this message is shown in both cases "Personalized mode" and "Shared mode". I think when we toggle this button from "Personalized mode" to "Share mode", then it should be "Do you want to share your analysis?"

@AhyoungRyu
Copy link
Contributor

Except the comment that I left in the above, working well as expected :D

@jongyoul
Copy link
Member Author

It's related AngularObject, isn't it? I'll check it.

Fixed NPE while broadcasting userParagraphsMap
@jongyoul
Copy link
Member Author

@Leemoonsoo @minahlee Review it, please.

* change mode name shared to collaboration and dialog message

* change dialog message Collaboration -> collaborate,
@jongyoul
Copy link
Member Author

I think it has implemented basic function what we intended. Merging if there's no more discussion and will fix some bugs if we find any minor wrong behaviour.

@AhyoungRyu
Copy link
Contributor

@jongyoul @cloverhearts Did you have any chance to check my comment?

@AhyoungRyu
Copy link
Contributor

@jongyoul @cloverhearts Didn't saw the last commit. Please ignore my last comment :)

@jongyoul
Copy link
Member Author

@AhyoungRyu Yes, AFAIK, @cloverhearts has changed it :-)

@asfgit asfgit closed this in e673949 Dec 24, 2016
asfgit pushed a commit that referenced this pull request Dec 24, 2016
### What is this PR for?
Job class has only two sub classes. I don't think we need Job abstraction class anymore, then I'll move all function of Job into Paragraph and InterpretJob. Paragraph is used into zeppelin-server and InterpretJob is done by remoteInterpreterServer. I think what we disconnect those two different classes is better to maintain each side of codes. This PR moves two variable - result and results - from Job to Paragraph in order to remove Job class. It also based on ZEPPELIN-1594(#1753), thus all reviewers click the last commit and review it.

### What type of PR is it?
[Refactoring]

### Todos
* [x] - Moved these variables into Paragraph

### What is the Jira issue?
N/A

### How should this be tested?
All things are same as before

### Screenshots (if appropriate)
N/A

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Jongyoul Lee <jongyoul@gmail.com>

Closes #1793 from jongyoul/minor/refactoring-job-paragraph and squashes the following commits:

ca0be86 [Jongyoul Lee] Fixed some weird indentation
2fe9b63 [Jongyoul Lee] Reformat code
8de238b [Jongyoul Lee] Changed wrong variable name
6923002 [Jongyoul Lee] Changed to store result from jobRun() in Job
54a2423 [Jongyoul Lee] Moved result(s) from Job into Paragraph
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.

4 participants