pulumi/sdk/python
Joe Duffy 458d7a2249 Proxy missing Python dict entries during preview
This is a hypothetical approach to fixing #4040. I'm sure there
are fatal flaws in this, however, ever since encountering the bug
this is what I assumed we would do.

The idea is to catch missing keys (and properties, due to typed
dicts), and substitute fake outputs that never resolve to known
values during previews. This enusres that keys that are only
populated during an apply show up inside of the dicts as expected.

The two flaws I see immediately are that the RTTI for the returned
object won't actually be a dict, so type testing may not work,
in addition to, I suppose, the false negative for keys that truly
won't ever get populated, and deferring the knowledge of that until
update rather than seeing them during applies.
2020-11-19 19:14:58 -08:00
..
cmd Support python 3.9 on windows (#5739) 2020-11-11 14:07:59 -08:00
dist Respect PULUMI_PYTHON_CMD in scripts (#5782) 2020-11-18 19:08:41 -08:00
lib Proxy missing Python dict entries during preview 2020-11-19 19:14:58 -08:00
.gitignore add .venv/ to python .gitignore to ignore when using PIPENV_VENV_IN_PROJECT=1 2019-06-19 12:43:04 -07:00
.pylintrc Support remote components in Python (#5375) 2020-09-30 14:09:20 -07:00
Makefile Update sdk/python/Makefile 2020-11-18 09:21:41 -08:00
Pipfile Switch to pytest since it captures stdout/stderr and only prints on failure 2020-11-17 23:09:18 -08:00
Pipfile.lock Switch to pytest since it captures stdout/stderr and only prints on failure 2020-11-17 23:09:18 -08:00
mypy.ini Allow oversize protocol buffers (#3895) 2020-02-10 15:30:42 -07:00
python.go Install plugin dependencies (#5353) 2020-09-14 13:54:26 -07:00
python_test.go Update pip/setuptools/wheel in virtual environment (#5042) 2020-07-23 13:33:09 -07:00