Commit Graph

38 Commits

Author SHA1 Message Date
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
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
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
Keagan McClelland
221ea133fa tracks user requests to registry 2022-06-27 15:14:48 -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
2105c58182 mass clean up of warnings, hints, errors 2022-05-26 18:26:32 -06:00
Keagan McClelland
11e361fc5b log uploads 2022-05-26 18:26:32 -06:00
Keagan McClelland
411d186517 add index and deindex endpoints 2022-05-26 18:26:32 -06:00
Keagan McClelland
d2aee89cda implements basic authentication for admins 2022-05-26 18:26:32 -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
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
0d7719eac5 add database model for ptracking package dependencies 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
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
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
66e19a727e rename AppIdentifier to PkgId to save typing and reflect new name terminology 2022-02-26 23:27:27 -07:00
Lucy Cifferello
aadbc385d0 fix tests 2022-02-26 23:27:27 -07:00
Lucy Cifferello
7b2684acd5 aggregate query functions 2022-02-26 23:27:27 -07:00
Lucy Cifferello
d53262e143 add priority to order categories 2022-02-26 23:27:27 -07:00
Lucy Cifferello
82dcfbd5f5 make version arch optional 2022-02-26 23:27:27 -07:00
Lucy Cifferello
d2f8db82cf add architecture to version table; refactor to remove dependency on apps.yaml 2022-02-26 23:27:27 -07:00
Lucy Cifferello
4986215935 unique index on category table and update sys endpoint 2022-02-26 23:27:27 -07:00
Lucy Cifferello
64fc16813f categories refactor 2022-02-26 23:27:27 -07:00
Lucy C
e81b3b7546 udpate lts to 18.11 (#69) 2021-11-08 09:39:06 -07:00
Keagan McClelland
28edfc2f87 emver for registry appears complete, more testing required but should be ready for beta testing 2020-10-28 17:43:36 -06:00
Keagan McClelland
a192bce08c removes compatibility dependency, filters apps/versions based off of user agent header 2020-09-21 17:45:23 -06:00
Lucy Cifferello
dc078bfa31 make metrics specifc to apps 2020-06-22 15:44:41 -06:00
Lucy Cifferello
25b1786808 rework to normalize version in db and small cleanups 2020-06-22 12:47:28 -06:00
Lucy Cifferello
57627163ff more robust testing 2020-06-09 12:48:28 -06:00
Lucy Cifferello
87a6b9bb9b handle proper version info parsing 2020-06-08 15:18:57 -06:00
Lucy Cifferello
2fb72aeca4 finalize persistence ofapp download metrics 2020-06-06 21:52:57 -06:00
Keagan McClelland
0a74f88171 registry changes ready for 0.1.2 sys release 2020-02-19 03:22:31 +00:00
Aaron Greenspan
22e1170e79 initial commit 2019-12-21 13:13:19 -07:00