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

Setup endpoint crate structure and required dependencies #102

Closed
bbangert opened this issue Feb 14, 2019 · 4 comments · Fixed by #150
Closed

Setup endpoint crate structure and required dependencies #102

bbangert opened this issue Feb 14, 2019 · 4 comments · Fixed by #150
Assignees

Comments

@bbangert
Copy link
Member

Create the autoendpoint crate, copy/update main/settings from autopush and setup basic module structure with the actix framework.

@pjenvey
Copy link
Member

pjenvey commented Jun 1, 2020

When creating a new Settings type for the autoendpoint crate, let's see if we can take advantage of somewhat recent changes to config-rs's handling of defaults. More details about this are over here as a TODO for syncstorage-rs

@pjenvey
Copy link
Member

pjenvey commented Jun 2, 2020

We've used very similar actix-web project skeletons in syncstorage-rs and recently tokenserver-rs, they'd be worth taking a look at.

@AzureMarker
Copy link
Contributor

@jrconlin set up a template in https://github.com/mozilla-services/autoendpoint-rs so I'll apply the work I've done up to now to that repo (and link with autopush-common) and then call this issue finished.

@AzureMarker
Copy link
Contributor

A discussion was held about having a separate repo vs using this repo, conclusion is to use this repo for now and switch over to a separate repo if it's not working out.

AzureMarker added a commit that referenced this issue Jun 8, 2020
* Add Python virtual env directory to gitignore

* feat: Add autoendpoint crate

Based off of the template from
https://github.com/mozilla-services/autoendpoint-rs, but with some
modifications such as removing unused dependencies.

Closes #102

* Fix autoendpoint's include_str of version.json

* Replace failure with thiserror

* Remove unnecessary box over StatsdClient

* docs: Add a WIP runbook for autoendpoint

* Use default settings if no config is given

* Remove envlogger todo

* Simplify ApiError serialization

* Add TODO to verify error schema is correct

* Fix Cargo.lock issues after rebase

* Add backtrace support to autoendpoint error and improve usability

ApiError has a display impl which prints out the kind, backtrace, and
source error chain.

* Use more exact error type for metrics_from_opts

* Simplify metrics_from_req

* Remove unused imports
@AzureMarker AzureMarker added this to the Autoendpoint Rust Server milestone Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants