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

Remove force update hack #1537

Closed

Conversation

BenRussert
Copy link
Member

@BenRussert BenRussert commented Feb 8, 2019

I wrote this hack a while back because the mobx calculated value for store.filePath would only update if the editor changed completely. This is because store.filePath relied on editor.getPath(), but this is not tracked by mobx. Changing store.filePath to an observable like below is much simpler.

WIP until #1534

- Fix up tests first then rebase
- Also remove status-bar spec not needed/working correctly
@BenRussert
Copy link
Member Author

I had originally planned this to be two PRs to keep things simple. Our store and it's tests are due for some cleanup.

The main thing I've done to our specs here is removed the use of the global store across different unit tests. Now each test initializes a new Store() and sets up state for that test only so that it is easier to write tests independently.

BenRussert added a commit to BenRussert/hydrogen that referenced this pull request Feb 9, 2019
- Clarify multilanguage file kernel logic
- Fix flow error
- xfail kernel monitor specs, will fix in nteract#1537
BenRussert added a commit that referenced this pull request Feb 9, 2019
- Clarify multilanguage file kernel logic
- Fix flow error
- xfail kernel monitor specs, will fix in #1537
@BenRussert
Copy link
Member Author

I used most of this work for #1540 and will come back to the rest later if needed

@BenRussert BenRussert closed this Feb 10, 2019
kylebarron pushed a commit that referenced this pull request Feb 15, 2019
* Allow creating kernel in unsaved file with language grammar set

* Update tests for unsaved editors and multilanguage files
- Clarify multilanguage file kernel logic
- Fix flow error
- xfail kernel monitor specs, will fix in #1537

* Removes unsaved computed property

* Remove use of global store from all specs

* Update spec for multi language editors

* Add link to Readme for Notebook Import/Output docs (#1544)

* isSingeLine -> isSingleLine

* Small typo corrections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant