Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround hasura bugs, tweaks to get upserting working #698

Merged
merged 33 commits into from
Jun 2, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
3e9ba01
enum migration
ajvpot Jun 1, 2022
c45efaf
regenerate
ajvpot Jun 1, 2022
e92983e
fix unique constraints
ajvpot Jun 1, 2022
ff31f0d
format migration
ajvpot Jun 1, 2022
e78d2d6
go mod tidy
ajvpot Jun 1, 2022
d14135a
replace genqlient
ajvpot Jun 1, 2022
06ec802
patch genqlient
ajvpot Jun 1, 2022
6604620
it work
ajvpot Jun 1, 2022
14c79c8
echo the diff
ajvpot Jun 1, 2022
3261494
split out workflow
ajvpot Jun 1, 2022
a485212
split out workflow
ajvpot Jun 1, 2022
3357578
go mod
ajvpot Jun 1, 2022
e2a2df6
rm dead code
ajvpot Jun 1, 2022
e8e8017
merge npm2 and npm packages
ajvpot Jun 1, 2022
1690247
change licensesource enum to string
ajvpot Jun 1, 2022
dd552e2
regen
ajvpot Jun 2, 2022
222beed
use fetched time
ajvpot Jun 2, 2022
141b5af
change gql query result
ajvpot Jun 2, 2022
d167947
create check constraint for null custom registries
ajvpot Jun 2, 2022
ce92e37
fix wrong constraint
ajvpot Jun 2, 2022
5667e28
just make custom registry not nullable
ajvpot Jun 2, 2022
cc5f41b
idempotency fix
ajvpot Jun 2, 2022
bbfec8e
idempotency fix
ajvpot Jun 2, 2022
1bc16b5
Merge branch 'master' into fix_enums_2
ajvpot Jun 2, 2022
90f6935
enable nullability
ajvpot Jun 2, 2022
7e8ea3e
switch back to google uuid
ajvpot Jun 2, 2022
afef899
make it a crawler
ajvpot Jun 2, 2022
dcaea4d
todo
ajvpot Jun 2, 2022
652e994
add check for package fetch time for queue handler
ajvpot Jun 2, 2022
d30e024
optimize gql query
ajvpot Jun 2, 2022
c0af693
code style settings
ajvpot Jun 2, 2022
f6598be
don't specify tabs for python
ajvpot Jun 2, 2022
e1715bb
merge and regen
ajvpot Jun 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
create type package.license_source as enum ('manual', 'scan_repo', 'scan_binary', 'api_npm');

create type package.package_manager as enum ('npm');

alter table package.release_license
alter column source type package.license_source using source::text::package.license_source;

alter table package.package
alter column package_manager type package.package_manager using package_manager::text::package.package_manager;

alter table package.maintainer
alter column package_manager type package.package_manager using package_manager::text::package.package_manager;

drop type public.license_source;

drop type public.package_manager;


Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
create type public.license_source as enum ('manual', 'scan_repo', 'scan_binary', 'api_npm');

create type public.package_manager as enum ('npm');

alter table package.release_license
alter column source type public.license_source using source::text::public.license_source;

alter table package.package
alter column package_manager type public.package_manager using package_manager::text::public.package_manager;

alter table package.maintainer
alter column package_manager type public.package_manager using package_manager::text::public.package_manager;

drop type package.license_source;

drop type package.package_manager;


64 changes: 64 additions & 0 deletions lunatrace/schema.graphql

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.