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

Merge lando-ui repo #14

Closed
wants to merge 282 commits into from
Closed

Merge lando-ui repo #14

wants to merge 282 commits into from

Conversation

zzzeid
Copy link
Collaborator

@zzzeid zzzeid commented Dec 5, 2023

No description provided.

mars-f and others added 30 commits July 18, 2017 17:50
Make the CircleCI build tag and push the 'latest' image tag to Docker
 Hub so that we can use the latest image in the demo.
Move the application logging configuration out of pages.py and into
app.py.  Use the new app logger to log some interesting application
 startup information.
Turn the Sentry client instance into a module-level object so that it
 is usable by other code.
The asset pipeline breaks during unit testing because it writes files
 to disk.  We can break the test environment dependency by
 adding a flag to control the asset management machinery and turn
 that flag off during test runs.
The test environment breaks when running unit tests outside of the
docker environment.  Monkeypatch some key environment variables to
break the environment dependencies.
Handle various lando-api http status codes and map them to sensible
lando-ui http responses.
Turn on the TESTING setting so that exceptions within the app bubble up to the test runner.  Otherwise Flask will hide the exception behind a generic HTTP 500 response, and that makes writing and debugging tests much harder.
Change the Lando API URL into a application setting so that we can
access it from multiple places without scattering os.environ() calls
everywhere.
The dockerflow health and version endpoints should instruct the caller
not to cache any results. This commit sets Cache-Control to properly
disable caching.

Closes #51
Reviewers: imadueme

Reviewed By: imadueme

Bug #: 1402189

Differential Revision: https://phabricator.services.mozilla.com/D75
Summary:
These notes include a reference to general Conduit contribution
guidelines along with specifics of modifying the local hosts file
and specifying a specific lando-api instance.

Reviewers: imadueme

Bug #: 1402189

Differential Revision: https://phabricator.services.mozilla.com/D76
Test Plan: Hover over the top logo, no background color change.

Reviewers: imadueme

Reviewed By: imadueme

Differential Revision: https://phabricator.services.mozilla.com/D79
Reviewers: davidwalsh

Reviewed By: davidwalsh

Differential Revision: https://phabricator.services.mozilla.com/D154
cgsheeh and others added 27 commits November 2, 2022 10:27
Sentry is categorizing any unexpected response as a `JSONDecodeError`
because those responses are typically returning HTML webpages or empty
response bodies. Move the JSON decoding to it's own try/except block and
attempt to raise the `requests` error in it's place.
)

Pass the `revision_id` from the stack page through to the
uplift endpoint instead of `landing_path`.
Add license headers to all relevant files in-tree. This is
essentially everything (all Python, SASS, JS etc) except the
vendored copy of Bulma.
…ug 1814207) (#157)

`old/` has been unused for some time. `how_to_localdev.md` is
horribly out of date, and Suite should be used instead.

`README.md` has a bunch of linting errors caught by
markdownlint, so fix them as well.

Co-authored-by: Zeid Zabaneh <[email protected]>
… (Bug 1759890) (#159)

Since we divide a value in half in `graph_x_pos`, we can technically
return a `float. Force the value into an `int` with `//` division.
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.11.1 to 1.14.0.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](getsentry/sentry-python@1.11.1...1.14.0)

---
updated-dependencies:
- dependency-name: sentry-sdk
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
#170)

Mount the full Lando-UI source directory into `/app` in the
container to conform with how Lando-API mounts volumes. Add
`FLASK_DEBUG=1` to the environment to enable hot-reloading.
)

Add a new `linkify_revision_ids` template filter which converts
revision IDs into a linkified Phabricator URL. Add this template
filter to the warning display when landing a revision so IDs
are clickable.
…m (Bug 1861534) (#183)

Clarify the wording of the patch conflicts error message so it is more
obvious where the issue is arising from. Also add a hint that rebasing
your patches on the latest revision from the landing repo may fix the
problem.
Add type hints to functions in `app.py`. The `use_https`
kwarg is used as a `bool` but is passed as an `int` 0 in
some places. Update usages to Python `bool`, which is more
correct.
Add a `from_environment` class method to avoid repeated code for building
a Lando-API object.
@zzzeid zzzeid force-pushed the zeid-bug-1867357-lando-ui branch from 6657b7e to 6433f74 Compare January 17, 2024 20:00
@zzzeid zzzeid closed this Jan 17, 2024
@zzzeid zzzeid deleted the zeid-bug-1867357-lando-ui branch January 17, 2024 20:02
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.