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

Add variables panel to side view (variables control currently empty) - RESUBMIT #404

Merged
merged 26 commits into from
Nov 6, 2020

Conversation

IanMatthewHuff
Copy link
Member

For #250

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • Title summarizes what is changing.
  • Has a news entry file (remember to thank yourself!).
  • Appropriate comments and documentation strings in the code.
  • Has sufficient logging.
  • Has telemetry for enhancements.
  • Unit tests & system/integration tests are added/updated.
  • Test plan is updated as appropriate.
  • package-lock.json has been regenerated by running npm install (if dependencies have changed).

@IanMatthewHuff IanMatthewHuff requested a review from a team as a code owner November 5, 2020 21:58
@IanMatthewHuff
Copy link
Member Author

Bleh, I know that @rchiodo looked at this already on the old PR. Rich, I've not addressed your comment yet, but I will.

I have a bunch of comments on this PR in my previous PR here: #401 so check that out for more info and comments on the work.,

But I created that PR off of my fork, so it wasn't running the PR validation steps. This is the same PR, but pushed to upstream and not to my fork.

@IanMatthewHuff IanMatthewHuff changed the title Add variables panel to side view (variables control currently empty) Add variables panel to side view (variables control currently empty) - RESUBMIT Nov 5, 2020
@DonJayamanne
Copy link
Contributor

Does this PR move the variable window to the side panel for existing notebook and interactive window as well?
I don't see anything specific to native notebook, I'm assuming that's a separate PR

@IanMatthewHuff
Copy link
Member Author

@DonJayamanne Nothing in the plan currently to move the existing variable explorers. Second PR here is adding the react control and hooking it up to active Notebook.

@IanMatthewHuff
Copy link
Member Author

@DonJayamanne I know that we're both adding viewContainers, but seems like that should be pretty easy to merge as each view is independent.

package.json Outdated Show resolved Hide resolved
public [VariableViewMessages.Started]: never | undefined;
public [VariableViewMessages.UpdateSettings]: string;
public [CssMessages.GetCssRequest]: IGetCssRequest;
public [CssMessages.GetCssResponse]: IGetCssResponse;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we use existing messages?
I thought some of these were shared messages.

Copy link
Member Author

Choose a reason for hiding this comment

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

@DonJayamanne I resolved two of your comments above. This comment and the comment below it regarding the message classes I'd like to save for a later code review. I think your comments are legit, but this is currently how the message classes are constructed for all our viewer classes (DataViewer, PlotViewer, ect..) so if I change this I'd like to fix them all up in a separate PR. To not forget this I tagged the info in the bug for variable viewer (which I'm not resolving yet). Changes might need to do a bit more as making the I*Mapping classes properties static creates TS errors for using a class at all (versus a namespace) and I'm not fully sure if the PostOffice code is ok with that.

#250 (comment)

That ok?


// Map all messages to specific payloads
export class IVariableViewMapping {
public [VariableViewMessages.Started]: never | undefined;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not make these static properties, else we'd need to new up this class everytime.

@IanMatthewHuff IanMatthewHuff merged commit 25e71cb into main Nov 6, 2020
@IanMatthewHuff IanMatthewHuff deleted the dev/ianhu/variablePanel branch November 6, 2020 20:59
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.

3 participants