Skip to content

Make HTTPS the default protocol in emitter (close #14)#288

Merged
Jack Keene (Jack-Keene) merged 3 commits into
release/0.12.0from
issue/14-default_protocol
Oct 31, 2022
Merged

Make HTTPS the default protocol in emitter (close #14)#288
Jack Keene (Jack-Keene) merged 3 commits into
release/0.12.0from
issue/14-default_protocol

Conversation

@Jack-Keene

Copy link
Copy Markdown
Contributor

This PR makes https default for the emitter protocol as well as allowing the protocol to be included in the url endpoint.

@Jack-Keene Jack Keene (Jack-Keene) added type:enhancement New features or improvements to existing features. category:breaking_change A breaking change will be introduced if this issue is completed. labels Oct 31, 2022
@snowplowcla Snowplow CLA bot (snowplowcla) added the cla:no [Auto generated] Snowplow Contributor License Agreement has not been signed. label Oct 31, 2022
@Jack-Keene Jack Keene (Jack-Keene) removed the cla:no [Auto generated] Snowplow Contributor License Agreement has not been signed. label Oct 31, 2022

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great! I just had a minor comment about the use of set.

Also can we rename the issue to something like Make HTTPS the default protocol in emitter. And make sure to use the # before issue number in the PR title (so ... (close #14), otherwise Github won't reference the commit to the issue when you merge the PR.

Comment thread snowplow_tracker/emitters.py Outdated
protocol: HttpProtocol = "http",
protocol: HttpProtocol = "https",
port: Optional[int] = None,
method: Method = "get",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Fyi, I think it would be good to move to POST as the default method, but I have a dilemma about the default buffer size that I think we should discuss a bit more. Wrote it down in the issue here.

@Jack-Keene Jack Keene (Jack-Keene) changed the title Add support for HTTPS - possibly make default (close 14) Add support for HTTPS - possibly make default (close #14) Oct 31, 2022
@Jack-Keene Jack Keene (Jack-Keene) changed the title Add support for HTTPS - possibly make default (close #14) Make HTTPS the default protocol in emitter (close #14) Oct 31, 2022
@Jack-Keene Jack Keene (Jack-Keene) merged commit 1ea728e into release/0.12.0 Oct 31, 2022
@Jack-Keene Jack Keene (Jack-Keene) deleted the issue/14-default_protocol branch October 31, 2022 16:01
@Jack-Keene Jack Keene (Jack-Keene) restored the issue/14-default_protocol branch November 1, 2022 13:13
Jack Keene (Jack-Keene) added a commit that referenced this pull request Nov 1, 2022
Matus Tomlein (matus-tomlein) pushed a commit that referenced this pull request Nov 1, 2022
PR #288
* Set https as default protocol
* Add unit tests

Make HTTPS the default protocol in emitter (close #14) #288

* Fix endpoint check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:breaking_change A breaking change will be introduced if this issue is completed. type:enhancement New features or improvements to existing features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants