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

[core-http] Create private package for core-http 2.0 work #8621

Merged
merged 3 commits into from
May 1, 2020

Conversation

xirzec
Copy link
Member

@xirzec xirzec commented Apr 30, 2020

In order to facilitate the refactor work for core-http, I am creating a new private package we can use to merge in refactored code and test it out with autorest/etc.

Once it is fully mature we can decide if we want it to replace the existing core-http folder or not.

For the package name I picked core-https to reflect conversations I've had with @bterlson about us not supporting any non-encrypted communication with our services. It's a somewhat cheeky name and I am open to alternative temporary names if folks would prefer something else. :)

Refactor work is tracked by Epic #8535

@xirzec xirzec added Client This issue points to a problem in the data-plane of the library. Azure.Core labels Apr 30, 2020
@xirzec xirzec self-assigned this Apr 30, 2020
Copy link
Member

@joheredi joheredi left a comment

Choose a reason for hiding this comment

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

Very cool, I'm excited to see this work kickstarted!!!


## Next steps

- Build this library (`core-http`). For more information on how to build project in this repo, please refer to the [Contributing Guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md).
Copy link
Member

Choose a reason for hiding this comment

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

nit: Maybe this can be updated to core-https

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated this with some better placeholders since I had merely copy-pasted the core-http readme before.

"request": "launch",
"name": "Launch Program",
"preLaunchTask": "Build Node",
"program": "${workspaceFolder}\\src\\index.ts",
Copy link
Member

Choose a reason for hiding this comment

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

What would it do when launching index.ts? do we want ${file} or something else to run a sample or test?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm going to replace these with some better ones.


## Key concepts

You can find an explanation of how this repository's code works by going to our [architecture overview](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/core/core-http/docs/architectureOverview.md).
Copy link
Member

Choose a reason for hiding this comment

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

are we going to have a new architecture overview instead of linking to the old one?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I'll put a TODO

"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/coreHttps.d.ts"
Copy link
Member

Choose a reason for hiding this comment

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

nit: for future downlevel dts work

Suggested change
"publicTrimmedFilePath": "./types/coreHttps.d.ts"
"publicTrimmedFilePath": "./types/latest/coreHttps.d.ts"

Copy link
Member

Choose a reason for hiding this comment

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

not really needed, could be done in future.

Copy link
Member Author

Choose a reason for hiding this comment

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

no time like the present. I also fixed up the build task to run downlevel-dts

Copy link
Member

@bterlson bterlson left a comment

Choose a reason for hiding this comment

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

Looks good! I'm not sure about core-https as an actual package name that gets released, but it's fine as a cheeky code name we keep internal.

@xirzec
Copy link
Member Author

xirzec commented May 1, 2020

Looks good! I'm not sure about core-https as an actual package name that gets released, but it's fine as a cheeky code name we keep internal.

Agreed. We can find a better name or just pave over core-http on release.

@xirzec
Copy link
Member Author

xirzec commented May 1, 2020

/check-enforcer reset

@xirzec
Copy link
Member Author

xirzec commented May 1, 2020

/check-enforcer evaluate

@xirzec xirzec merged commit 0f2bf8e into Azure:master May 1, 2020
@xirzec xirzec deleted the createCoreHttps branch May 1, 2020 00:34
@joheredi joheredi mentioned this pull request Jun 12, 2020
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Core Client This issue points to a problem in the data-plane of the library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants