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

Pxp9/ft filters url #14

Merged
merged 50 commits into from
Jul 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
3b22ec5
tenemos las tallas gracias a la cortesía de ChatGPT beautiful soup y …
pxp9 Jun 26, 2023
1e2ba19
script de python que te saca todos los nombres de marcas de la pagina…
pxp9 Jun 26, 2023
05e4c9c
nombres de marcas y tallas extraidas
pxp9 Jun 27, 2023
4ded399
script que hace requests a la api y obtiene el ID de la marca
pxp9 Jun 27, 2023
13fa03d
Got brands_ids :D
pxp9 Jun 28, 2023
94aa959
formatting catalogs ids
pxp9 Jun 28, 2023
1db1de6
organizando los recursos de los filtros
pxp9 Jun 28, 2023
ddcd8a9
materiales
pxp9 Jun 28, 2023
997bb8e
arreglillos de ultima hora
pxp9 Jun 28, 2023
e0780c8
arreglillos de ultima hora
pxp9 Jun 28, 2023
1616989
Added scrappers as submodule
0xCAB0 Jun 28, 2023
6cfce5a
Refactor completed
0xCAB0 Jun 28, 2023
882b871
Fmt formatted
0xCAB0 Jun 28, 2023
e993523
actualizando el submodulo del scrapper
pxp9 Jun 28, 2023
45a49c5
primera migration sizes complete
pxp9 Jun 28, 2023
e11bde6
get_catalogs , alvaro y README
pxp9 Jun 28, 2023
987cd54
Finished catalogs
0xCAB0 Jun 29, 2023
154f568
Merge branch 'pxp9/ft_filters_url' of https://github.com/TuTarea/vint…
0xCAB0 Jun 29, 2023
92626cf
Fix README
0xCAB0 Jun 29, 2023
d4d4e65
Fix both Readme
0xCAB0 Jun 29, 2023
1b18109
Fix dependency for Diesel
0xCAB0 Jun 29, 2023
a7390f1
Created more migrations
0xCAB0 Jun 29, 2023
584bfb9
Brands needs a fix
0xCAB0 Jun 29, 2023
6aed03f
fix migrations and brands
pxp9 Jun 29, 2023
9b37f70
migracion de countries y query de la BBDD de una marca
pxp9 Jul 1, 2023
492ddbb
fix clippy
pxp9 Jul 1, 2023
76c863e
arreglando un bug con las cookies, haciendo un test y limitando get_i…
pxp9 Jul 2, 2023
e7ec654
fix fmt
pxp9 Jul 2, 2023
efef654
mejorando la API del wrapper , implementando FROM de Brand
pxp9 Jul 2, 2023
dbba50b
fix fmt
pxp9 Jul 2, 2023
92eb3ef
fix clippy on test
pxp9 Jul 2, 2023
1c9960d
review API and model types
pxp9 Jul 2, 2023
661164a
fix fmt
pxp9 Jul 2, 2023
7d5c683
Db tests
pxp9 Jul 2, 2023
24f29f5
fix workflow
pxp9 Jul 2, 2023
8c8f7d4
empezando a procesar los filtros en la URI
pxp9 Jul 2, 2023
6c8124a
Finished db-feeder
0xCAB0 Jul 6, 2023
68d2ee3
Merge branch 'pxp9/ft_filters_url' of https://github.com/TuTarea/vint…
0xCAB0 Jul 6, 2023
6e4bb53
Added some tests
0xCAB0 Jul 8, 2023
688f610
Added query
0xCAB0 Jul 8, 2023
5d4e151
Added optional num field in get_items
0xCAB0 Jul 8, 2023
68c1316
Added Get_category_by_name tested
0xCAB0 Jul 8, 2023
ae87f2f
Converted vec<i32> to String
0xCAB0 Jul 8, 2023
beacaad
Finished filters
0xCAB0 Jul 8, 2023
e1e9252
Fix doctest
0xCAB0 Jul 8, 2023
1808006
Added get-host
0xCAB0 Jul 8, 2023
edfaf53
Cargo clippy fix
0xCAB0 Jul 8, 2023
645bffd
Small changes big steps
0xCAB0 Jul 8, 2023
7e3910b
Fix languages
0xCAB0 Jul 8, 2023
a7d0654
fuck cargo fmt
0xCAB0 Jul 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,27 @@ jobs:
name: Test
runs-on: ubuntu-latest

services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_DB: vinted-rs
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
# Set health checks to wait until postgres has started

ports:
- 5432:5432

options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5

steps:
- uses: actions/checkout@v3

Expand All @@ -29,6 +50,15 @@ jobs:
command: clippy
args: --verbose --all-targets --all-features -- -D warnings

- name: Install diesel-cli
uses: actions-rs/cargo@v1
with:
command: install
args: diesel_cli --no-default-features --features "postgres"

- name: Setup db
run: diesel setup --database-url=postgres://postgres:postgres@localhost/vinted-rs

- name: Run tests
uses: actions-rs/cargo@v1
with:
Expand Down
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "vinted-db-feeder"]
path = vinted-db-feeder
url = git@github.com:TuTarea/vinted-db-feeder.git
branch = main
Loading
Loading