Commit Graph

276 Commits

Author SHA1 Message Date
Keagan McClelland
59092f33b5 implements release notes filtering 2022-03-30 17:43:58 -06:00
Lucy Cifferello
9938913358 make get info a json response 2022-03-23 12:51:13 -06:00
Keagan McClelland
cdadae707c remove category enum (#97)
* remove category enum

* priority inversion, 0 is always first

* set marketplace name default to something more obviously wrong.
2022-03-01 16:39:13 -07:00
Keagan McClelland
75663b65e4 autohash eos 2022-03-01 14:36:24 -07:00
Keagan McClelland
4cab448846 tolerate empty list of os versions 2022-02-28 20:18:01 -07:00
Keagan McClelland
5e807f5c91 set tcp hang up time to 60s instead of default 30s v0.3.0 2022-02-26 23:27:27 -07:00
Keagan McClelland
ac94aa9f88 gzip eos.img and s9pks 2022-02-26 23:27:27 -07:00
Keagan McClelland
9da5c1e9b3 switch from conduit responses to file responses 2022-02-26 23:27:27 -07:00
Keagan McClelland
d526eda69c rewire the api to be clean and consistent (#92)
fix route documentation

fix sorting scheme to be more clear for release notes
2022-02-26 23:27:27 -07:00
Lucy C
14d7adc0c9 Feature/encode icons (#91)
* base64 encode icon in package response

* adds icons to dependencies

* swap arguments for loadIcon

* remove redundant constraint

Co-authored-by: Keagan McClelland <keagan.mcclelland@gmail.com>
2022-02-26 23:27:27 -07:00
Keagan McClelland
f0b958e6df reorder routes file, change error logs endpoint 2022-02-26 23:27:27 -07:00
Keagan McClelland
0d7fab5789 adds name to /package/data 2022-02-26 23:27:27 -07:00
Keagan McClelland
139ba20e2f fixes file descriptor leak 2022-02-26 23:27:27 -07:00
Keagan McClelland
b43d85ea63 implements query parameter for prioritizing lower versions 2022-02-26 23:27:27 -07:00
Keagan McClelland
796128d78a makes relative urls and uses route types to generate them 2022-02-26 23:27:27 -07:00
Lucy Cifferello
0d21881f99 remove critical from dependency type as uneeded 2022-02-26 23:27:27 -07:00
Keagan McClelland
89ef30a42c add Makefile 2022-02-26 23:27:27 -07:00
Keagan McClelland
b75fa8101c Condense Imports 2022-02-26 23:27:27 -07:00
Lucy Cifferello
d0b7b1f044 resolve PR feedback - add record type for package and dependency metadata 2022-02-26 23:27:27 -07:00
Lucy Cifferello
649f876692 organization refactor separating database actions, data transformations, and api type constructs into separate components 2022-02-26 23:27:27 -07:00
Lucy Cifferello
fe5218925d reprganize database calls and marketplaces types 2022-02-26 23:27:27 -07:00
Lucy Cifferello
0d7719eac5 add database model for ptracking package dependencies 2022-02-26 23:27:27 -07:00
Lucy Cifferello
bd95a3ec1b add testing resources directory 2022-02-26 23:27:27 -07:00
Lucy Cifferello
e4d54e90b7 update server name 2022-02-26 23:27:27 -07:00
Lucy Cifferello
b0453e1d4a rename all references from services to packages 2022-02-26 23:27:27 -07:00
Lucy Cifferello
94a1c66f6c always get package dependencies when querying for a specified package 2022-02-26 23:27:27 -07:00
Lucy Cifferello
c0279fcae8 handle errors in either cases 2022-02-26 23:27:27 -07:00
Lucy Cifferello
1ae32a5a8e refactor test suite for model and api changes, adding tests for fetched versions via index endpoint 2022-02-26 23:27:27 -07:00
Lucy Cifferello
328bf30eea fix handling of using index endpoint to fetch package at specific version 2022-02-26 23:27:27 -07:00
Keagan McClelland
c2af96f9de changes log epoch to use text instead of word64 due to overflow issues (#81) 2022-02-26 23:27:27 -07:00
Keagan McClelland
7b402d4039 add check for directory existence during package version enumeration (#80)
* add check for directory existence during package version enumeration

* cleanup

* error consistency

* errmsg cleanup
2022-02-26 23:27:27 -07:00
Keagan McClelland
eb7b777cf0 conflict resolution (#77) 2022-02-26 23:27:27 -07:00
Keagan McClelland
158f0cbec7 adds x-eos-hash header to eos.img response 2022-02-26 23:27:27 -07:00
Keagan McClelland
c6acbd383c sends 404s if we can't find the package rather than just blowing up and going 500 2022-02-26 23:27:27 -07:00
Keagan McClelland
2a3069818f rename get parameter 2022-02-26 23:27:27 -07:00
Keagan McClelland
7381872d06 fix the types on the db entries 2022-02-26 23:27:27 -07:00
Keagan McClelland
bf9e3e313f refactor registry to include OS version filtering on the package index (#64)
* refactor registry to include OS version filtering on the package index

* remove commented code, clean up tests

* removed unused types

* remove disabled test

* remove unused type

* fix query parsing

* remove unused code

* more purging

* MOAR PURGING

* normalize data model, fix all type errors

* rename get parameter
2022-02-26 23:27:27 -07:00
Keagan McClelland
39462a166a remove unnecessary import 2022-02-26 23:27:27 -07:00
Keagan McClelland
edc091b93f fixes lack of content length in eos image download 2022-02-26 23:27:27 -07:00
Keagan McClelland
107cf20503 puts newlines at the end of log statement if missing 2022-02-26 23:27:27 -07:00
Keagan McClelland
2c9320899d always sorts versions outside sql 2022-02-26 23:27:27 -07:00
Keagan McClelland
505a51b486 creates correct icon file 2022-02-26 23:27:27 -07:00
Keagan McClelland
d6ae703915 more cleanup 2022-02-26 23:27:27 -07:00
Keagan McClelland
c485dce4a8 send back release notes for eos 2022-02-26 23:27:27 -07:00
Keagan McClelland
99dea51f7d reduce io dependence 2022-02-26 23:27:27 -07:00
Keagan McClelland
468b65f43c Apply suggestions from code review
Remove unused code

Co-authored-by: Lucy C <12953208+elvece@users.noreply.github.com>
2022-02-26 23:27:27 -07:00
Keagan McClelland
affb120bf8 changed prints to logs 2022-02-26 23:27:27 -07:00
Keagan McClelland
1494ce6185 also re-extract if file modified 2022-02-26 23:27:27 -07:00
Keagan McClelland
e364e55a26 remove prelude import 2022-02-26 23:27:27 -07:00
Keagan McClelland
fab634698f remove postgresql-simple dependency 2022-02-26 23:27:27 -07:00