Commit Graph

272 Commits

Author SHA1 Message Date
Lucy Cifferello
42344abc17 fix empty case 2024-05-01 14:32:11 -04:00
Lucy Cifferello
4eb81d7e59 log 2024-05-01 14:31:50 -04:00
Lucy
4b7034a9c6 Fix/failure (#142)
* log

* fix empty case

* cleanup

* force ssl
2024-04-30 18:28:06 -04:00
Lucy
bb63e1ea82 fix logic ordering (#141) 2024-04-22 12:59:51 -04:00
Lucy
ae14680a54 Update/admin upload (#140)
* move auth logic into upload endpoint and remove separate endpoint

* test log

* log param parse

* check for backwards compatibility

* test

* cleanup
2024-04-18 11:37:17 -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 Cifferello
d4483f8ca3 hotfix for getting os version from query param 2023-11-15 17:07:33 -05:00
Lucy
0d5db1fa7a Feature/marketplace path (#138)
* handle redirecting to marketplace paths for brochure

* fix new route setup
2023-11-08 11:03:13 -07:00
Lucy Cifferello
3a7d9d5057 fix typo 2023-09-19 10:46:42 -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
e4cd1bae09 Update/root url (#136)
* handle root url

* add handler file

* fix compilation bug

* fix compilation error

* attempt redirect

* add query param of hostname

* add name to root query params

* cleanup
2023-06-19 14:53:06 -06:00
Lucy C
683b9d1712 code logic for version checkpoints instead of env vars for more optionality (#135) 2023-05-16 16:55:35 -06:00
Lucy Cifferello
dd7158cdff ensure empty whitelist can be parsed 2023-04-12 17:35:50 -06:00
Lucy Cifferello
fa40f6f7a2 fix whitelist logic and default it to empty 2023-04-12 17:01:19 -06:00
Lucy Cifferello
cf8b386c53 ensure whitelist is present before checking 2023-04-12 15:57:27 -06:00
Lucy C
c3dab78718 Fix/misc (#134)
* use latest version of dependency for metadata if best version is unsatisfied

* cleanup

* add config setting to allow protections around package uploads to specific registries

* change to whitelist

* properly parse whitelist

* enable deleting deprecated admin users
2023-04-12 15:39:59 -06:00
Lucy C
35500cfc02 Feat/local packages (#133)
* enable packages to be marked as unavailable locally

* change isLocal column to hidden

* add option to deprecate a service version based on a min os version
2023-04-11 19:08:53 -06:00
Lucy C
b7155e3139 default to 030 if eos-version param missing (#130) 2023-01-08 17:06:18 -07:00
Lucy Cifferello
2ba9b71df6 default to raspberrypi if arch does not exit 2022-12-19 11:16:27 -05:00
Lucy Cifferello
487bb97170 add parse case for mispelling; clean up imports 2022-12-19 10:25:20 -05: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
ProofOfKeags
d8f667e41a content ranges implemented (#114)
* content ranges implemented

* formatting

Co-authored-by: Lucy Cifferello <12953208+elvece@users.noreply.github.com>
2022-09-01 16:03:09 -06:00
Aiden McClelland
6127135a4d add published-at to registry response (#120)
* add published-at to registry response

* ensure we get the timestamp for the version being returned

* cleaup import

Co-authored-by: Lucy Cifferello <12953208+elvece@users.noreply.github.com>
2022-08-10 11:52:02 -06:00
Lucy C
e42cd787b4 filter packages for os compatibility before fetching metadata (#117)
* filter packages for os compatibility before fetching metadata

* address PR feedback and add os filtering to get package latest version endpoint

* additional test suite data

* filter empty version sets

* attempt to fix leak

Co-authored-by: Keagan McClelland <keagan.mcclelland@gmail.com>
2022-07-12 15:06:21 -06:00
Lucy Cifferello
18b951388b fix release note json serialization 2022-07-01 14:25:53 -06:00
Keagan McClelland
221ea133fa tracks user requests to registry 2022-06-27 15:14:48 -06:00
Keagan McClelland
5a590f0f4d Feature/data url images (#107)
* changes serialization scheme for v1 api

* removes dependent types
2022-06-20 10:44:21 -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
f3b9e78fca group non-categorical searches properly 2022-05-31 14:02:47 -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
07b151150a add todo about matrix bot 2022-05-26 18:26:32 -06:00
Keagan McClelland
460177d242 clean up question + todo 2022-05-26 18:26:32 -06:00
Keagan McClelland
fc8f671e3d fix migration issues 2022-05-26 18:26:32 -06:00
Keagan McClelland
285989caf5 document magic number 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
23863bb96d fix bug where packages with unknown dependencies won't be accepted 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
11e361fc5b log uploads 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