Skip to content

Abstract aborter into its own library#2373

Closed
bterlson wants to merge 25 commits into
Azure:masterfrom
bterlson:rush_abstract_aborter
Closed

Abstract aborter into its own library#2373
bterlson wants to merge 25 commits into
Azure:masterfrom
bterlson:rush_abstract_aborter

Conversation

@bterlson
Copy link
Copy Markdown
Member

@bterlson bterlson commented Apr 19, 2019

This draft PR builds on #2047 and abstracts Aborter into its own package and updates storage-blob to use this package.

Comment thread common/config/rush/command-line.json Outdated
@bterlson bterlson force-pushed the rush_abstract_aborter branch from 07552de to dc5f0d8 Compare April 30, 2019 19:33
@bterlson
Copy link
Copy Markdown
Member Author

bterlson commented Apr 30, 2019

Now that we've landed the rush change, this is good for a review. If the approach seems good, we can finish this up by:

  • use shared aborter across other client libraries
  • implement better tests, current tests are tied to the Storage library.
  • investigate impact on docs

/cc @AlexGhiondea @jeremymeng

Comment thread sdk/core/aborter/package.json Outdated
"types": "./types",
"keywords": [],
"author": "",
"license": "ISC",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess this is from npm init and we use MIT?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

good catch, also need LICENSE file.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Fixed

Comment thread .gitignore Outdated

allTasksSignal.abort(); // aborts allTasksSignal, subTask1, subTask2
subTask1.abort(); // aborts only subTask1
```
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should also mention the consequences of aborting?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Agreed, I'll add an example about that.

Comment thread sdk/core/aborter/package.json Outdated
@jeremymeng
Copy link
Copy Markdown
Member

browser tests are failing for me. Maybe due to rollup issue.
image

jeremymeng and others added 12 commits May 7, 2019 13:08
removed unused rollup json plugin
* Rename clients from *URL => *Client

* Rename test files after the client rename
* [Storage-file] Rename *URL to *Client

* Fix sample code in README.md

* Rename test files after client rename
* [Storage-queue] Rename *URL to *Client

* Rename test files after client rename
This is a follow up on previous rename refactoring.
@bterlson bterlson changed the base branch from master to feature/storage May 17, 2019 00:23
- rush sync-versions
- add "assert" dev dependency
- fix rollup this null warning
@jeremymeng jeremymeng self-assigned this May 17, 2019
@bterlson bterlson changed the base branch from feature/storage to master May 28, 2019 23:13
@chradek chradek assigned chradek and unassigned jeremymeng May 28, 2019
@daviwil
Copy link
Copy Markdown
Contributor

daviwil commented Jun 19, 2019

Just noticed that this PR is still open, should it be closed now that @chradek finished this work?

@bterlson
Copy link
Copy Markdown
Member Author

Yuppp, thanks!

@bterlson bterlson closed this Jun 19, 2019
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.

6 participants