Commit Graph

81 Commits

Author SHA1 Message Date
Lucy Cifferello
2843c29de6 log param parse 2024-04-16 19:02:24 -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
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
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
fa40f6f7a2 fix whitelist logic and default it to empty 2023-04-12 17:01:19 -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
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
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
db3beadd6c adds list-unindexed 2022-05-26 18:26:32 -06:00
Keagan McClelland
87b5a6e4a1 implements upload on server
actually move extracted dir to resource location
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
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
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
bcc3f01086 builds 2022-02-26 23:27:27 -07:00
Keagan McClelland
32de58979c cleanup usages of removed appmgr call 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
16251afd35 revert dev settings and incorrect fix 2022-02-26 23:27:27 -07:00
Lucy Cifferello
47c971de99 update to not use fs read for versions, just previous db call metadata 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
ac5acaa685 fix icon endpoint 2022-02-26 23:27:27 -07:00
Keagan McClelland
f2364e742e implements error log reporting 2022-02-26 23:27:27 -07:00
Lucy Cifferello
8a675b48fe update lts and log headers 2022-02-26 23:27:27 -07:00
Lucy Cifferello
eca229116b fix release notes route 2022-02-26 23:27:27 -07:00
Lucy Cifferello
723602e6f7 fix urls for static files 2022-02-26 23:27:27 -07:00
Lucy Cifferello
aa88306ee1 fix routes 2022-02-26 23:27:27 -07:00
Lucy Cifferello
99dba0e273 rename endpoints 2022-02-26 23:27:27 -07:00
Lucy Cifferello
96b194f615 reorder 2022-02-26 23:27:27 -07:00
Lucy Cifferello
9f4a344c04 pass through manifest as raw json value 2022-02-26 23:27:27 -07:00
Lucy Cifferello
9c8f236095 fix version in service detail path 2022-02-26 23:27:27 -07:00
Lucy Cifferello
2ee06007c7 rework package list endpoint, version latest, and release notes 2022-02-26 23:27:27 -07:00
Lucy Cifferello
0d27703b33 eos endpoint, lowercase categories, sdk get instructions and license 2022-02-26 23:27:27 -07:00
Lucy Cifferello
47d945f9c5 remove system status endpoint 2022-02-26 23:27:27 -07:00
Lucy Cifferello
09e188e9d8 rename apps endpoints to package and add header to addl endpoint 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
8f20f68c5e merge add package header 2022-02-26 23:27:27 -07:00
Lucy Cifferello
c4929b4a61 change apps to package in routes 2022-02-26 23:27:27 -07:00
Lucy Cifferello
64fc16813f categories refactor 2022-02-26 23:27:27 -07:00
Lucy Cifferello
cd4d392a74 route ordering 2021-05-12 09:11:10 -06:00
Lucy Cifferello
1fa68a0ad8 get system status endpoint 2021-05-11 22:16:25 -06: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
Lucy Cifferello
d275a06310 white space 2020-10-10 19:09:47 -06:00
Lucy Cifferello
e4d3e9a713 alter endpoints to support dynamic versions 2020-10-10 19:08:43 -06:00