Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Implement search API with an empty response #94

Closed
3 tasks done
thewilkybarkid opened this issue Jan 23, 2019 · 10 comments
Closed
3 tasks done

Implement search API with an empty response #94

thewilkybarkid opened this issue Jan 23, 2019 · 10 comments
Assignees

Comments

@thewilkybarkid
Copy link
Contributor

thewilkybarkid commented Jan 23, 2019

Implements #92 without returning any data.

  • Determine framework
  • Create search project
  • Implement search endpoint
@GiancarloFusiello
Copy link

@thewilkybarkid @giorgiosironi Can I start work on this? Regarding the framework, I plan on using python Flask. Any objections?

@thewilkybarkid
Copy link
Contributor Author

Flask's fine by me.

Ideally we want all the code to be in libraries (so the application itself is just glue/config), so if someone wants to make substantive changes they don't have to fork the whole thing. It's fine to leave it in the application for now (too difficult to development), but worth thinking about the separation. In Browser we've split them into libraries but kept them in the same repo (code in a dedicated folder, enabling through the dependency manager), so moving them into dedicated libraries in the future should be trivial.

@GiancarloFusiello GiancarloFusiello self-assigned this Jan 29, 2019
@GiancarloFusiello
Copy link

Can we add this to the Cambridge board for visibility?

@giorgiosironi
Copy link
Member

Yes, it should be put there. This is achieved using the URL of the issues and the + in the To do column, can show in person if needed.

@GiancarloFusiello
Copy link

I have created repo libero/search with basic code to get the project started. Please have a look and I can create pull requests for any changes.

I have only created a dev container at the moment. @giorgiosironi shall we go through creating a prod/ci container with nginx and uwsgi?

@giorgiosironi giorgiosironi modified the milestones: Homepage with list of content, Service: search Jan 29, 2019
@giorgiosironi
Copy link
Member

The current Dockerfile doesn't look much different from an application container to deploy, apart from the lack of a CMD and possibly uwsgi as a dependency.

creating a prod/ci container with nginx and uwsgi?

A container is supposed to have only one top level process, so it would be running uwsgi. Though it doesn't strictly need to be uwsgi, it could be any application server that exposes the WSGI protocol on a port; nginx then has official images that we can use.

I guess for local development you won't have an nginx because the Flask development server exposes directly HTTP instead.

By the way, we'll cover all of this in #96 which should define a production-oriented image, publish it, and use it.

@giorgiosironi
Copy link
Member

Please have a look and I can create pull requests for any changes.

Can't effectively provide comments situated in the code due to the first commit being already in master, we usually try to put in an empty README as the first commit and then open the first PR. Now, disparate comments here:

@GiancarloFusiello
Copy link

Yes, I see what you're saying. I'll be sure to just commit a README first in future.

@thewilkybarkid
Copy link
Contributor Author

thewilkybarkid commented Jan 29, 2019

Going to suggest we do reset the repo, since there’s a lot here that needs reviewing. Don’t think you can revert the first commit so will have to recreate the repo, but not a problem as nothing will be lost. A first commit should be something like libero/dummy-api@164653b, then a first PR like libero/dummy-api#1 (from a fork) to add in the details.

@GiancarloFusiello
Copy link

This is now resolved and the pull request for this task is ready for review.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants