Commit Graph

21 Commits

Author SHA1 Message Date
Lucy Cifferello
97a8cf85c8 check for backwards compatibility 2024-04-17 17:04:57 -04:00
Lucy Cifferello
e508ec64d4 move auth logic into upload endpoint and remove separate endpoint 2024-04-16 18:33:58 -04:00
Lucy
8834dd1d28 Feature/admin allowed pkgs (#139)
* update admin endpoints to check if authorized to upload pkg

* add auth route for package to check in cli prior to upload

* fix param parsing

* remove uneeded log

* add case for when package is new

* move insert auth admin to pkg check

* send 200 response on successful insert

* invert logic

* retype AdminPkgs since PkgRecord id as key will not yet exist

* cleanup
2024-04-16 15:26:46 -04:00
Lucy
e1fbac315b Updates/pkg hardware (#137)
* add ability to specify package architectures for publish script, as well as deindex them

* implement and adjust filtering for package hardware requirements; adjust for legacy and new query params paths

* augment test manifest and fix ram query

* fixes

* fix ram for other routes

* rework filtering logic to eliminate hack db call

* fix hanging issue and other dataset consistency issues

* adjust arch param

* cleanup

* fix package manifest parsing

* make index package arches optional

* rename from embassy-sdk to start-sdk and embassy-publish to registr-publish

* fix ram comparison

* increase upload timeout

* fix serialization and deserialization of devices jsonb database field

* cleanup

* another deserialization fix

* revert change; better error message and test case

* fix jsonb serialization freal

* cleanup

* fix jsonb deserialization

* fix lookup of device value

* parse empty device object as null
2023-08-07 13:18:50 -04:00
Lucy C
6df87e9873 Update/eos 033 (#128)
* add marketplace icon to info response

* fix max eos version available logic; toggle migrations

* only send icon if it exists

* increase upload timeout

* persist eos version and arch for user activity

* filter eos versions available based on arch

* remove registry icon

* remove eos upload from publish script

* filter package index response by arch

* remove arch from version record in favor of join table

* allow previous user activity records to contain null values

* make arch optional for backwards compatability

* make arch optional for backwards compatability on version latest endpoint

* not ideal but functional solution for backwards compatible arch filter

* insert version platform when index on publish upload

* add migration for dropping arch from package version table

* upsert all version platform records

* insert user activity even if version and arch do not exist

* increase http timeout to 10 minutes jic

* remove user metrics from latest endpoint
2022-12-07 12:05:07 -07:00
Lucy C
648d69c14a Feature/zip upload (#124)
* zip eos image on upload

* fix warning

* revert content length as its already set by module

* move stream zipping to cli upload

* refactor upload with simple gzip approach - progress bar broken

* increase timeout

* fix request body and unzip once uploaded

* unzipped in wrong fn; cleanup

* add progress bar for hashing and zipping, cleanup files

* add messaging to progress bars
2022-09-19 15:18:14 -06:00
Aiden McClelland
3aef9dbf09 hash on upload (#123)
* hash on upload

* Update src/Cli/Cli.hs

* fix import and clean up error response

* remove content length limit

* remove import

* lift version

* slow af but works

Co-authored-by: Lucy C <12953208+elvece@users.noreply.github.com>
2022-09-08 10:29:01 -06:00
Keagan McClelland
dbd73fae7f Feature/api versioning (#106)
* wip

* finishes initial refactor

* prune unused code

* finished massive refactor

* remove commented deps

* fix import

* fix bug
2022-06-20 10:28:28 -06:00
Keagan McClelland
a2f7b97942 adds category managment to embassy-publish and admin API 2022-06-06 17:02:23 -06:00
Keagan McClelland
6367da9c3b fix autoinstall of zsh completer 2022-05-27 16:18:53 -06:00
Keagan McClelland
a1ca3a5eaf fix cross device link 2022-05-27 14:42:00 -06:00
Keagan McClelland
f761677420 bang patterns optimization to avoid unnecessary laziness 2022-05-27 10:53:09 -06:00
Keagan McClelland
2105c58182 mass clean up of warnings, hints, errors 2022-05-26 18:26:32 -06:00
Keagan McClelland
3d8b4057df adds bash, fish, and zsh completions 2022-05-26 18:26:32 -06:00
Keagan McClelland
649a86fd5f add comments about cli output 2022-05-26 18:26:32 -06:00
Keagan McClelland
db3beadd6c adds list-unindexed 2022-05-26 18:26:32 -06:00
Keagan McClelland
772708dd73 send out password hash on reg add 2022-05-26 18:26:32 -06:00
Keagan McClelland
d350e8538b fix bug with unspecified package uploads 2022-05-26 18:26:32 -06:00
Keagan McClelland
3395db8604 cleans up docs 2022-05-26 18:26:32 -06:00
Keagan McClelland
4c8cba18a2 Implements uploads, index, and deindex 2022-05-26 18:26:32 -06:00
Keagan McClelland
79323465db implements multi registry management 2022-05-26 18:26:32 -06:00