Page MenuHomeElementl

[dagster-graphql-client] Allow HTTPS use
ClosedPublic

Authored by sidkmenon on Jun 9 2021, 9:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 11, 12:17 AM
Unknown Object (File)
Feb 16 2023, 3:52 PM
Unknown Object (File)
Feb 14 2023, 7:05 PM
Unknown Object (File)
Feb 10 2023, 10:56 PM
Unknown Object (File)
Feb 5 2023, 4:36 PM
Unknown Object (File)
Feb 4 2023, 6:08 AM
Unknown Object (File)
Nov 17 2022, 11:51 PM
Unknown Object (File)
Nov 17 2022, 11:51 PM
Subscribers
None

Details

Summary

After a lot of back and forth, we were able to finally sort out this issue as related to using http vs. https.

Therefore, adding a flag that allows users to specify whether or not they want to use HTTPS in the client's connection URL.

Test Plan

bk

Diff Detail

Repository
R1 dagster
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dgibson added inline comments.
python_modules/dagster-graphql/dagster_graphql/client/client.py
45–51

nit Is there a reason optional is listed separately if we have the Optional type?

why not

use_https (Optional[bool])?

This revision is now accepted and ready to land.Jun 9 2021, 10:22 PM
sidkmenon added inline comments.
python_modules/dagster-graphql/dagster_graphql/client/client.py
45–51

nit Is there a reason optional is listed separately if we have the Optional type?

why not

use_https (Optional[bool])?

I think this is how Sphinx generates docstrings by default - on some reflection, I think this is why:

  1. Optional[bool] denotes use_https : True | False | None; but it does not necessarily imply that use_https has a default value.
  2. bool, optional denotes that use_https: True | False but it is has a default value, so does not need to be specified