Skip to content

Commit

Permalink
alias original_source_upload_is_available to has_original_source_uplo…
Browse files Browse the repository at this point in the history
…ad for a smoother migration
  • Loading branch information
underbluewaters committed Feb 9, 2024
1 parent caceada commit 86608f4
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/api/generated-schema-clean.gql
Original file line number Diff line number Diff line change
Expand Up @@ -13416,6 +13416,7 @@ type TableOfContentsItem implements Node {
geoprocessingReferenceId: String
hasArcgisVectorLayer: Boolean
hasMetadata: Boolean
hasOriginalSourceUpload: Boolean!
hideChildren: Boolean!
id: Int!

Expand Down Expand Up @@ -13448,7 +13449,6 @@ type TableOfContentsItem implements Node {
A globally unique identifier. Can be used in various places throughout the system to identify this single value.
"""
nodeId: ID!
originalSourceUploadAvailable: Boolean!

"""
stable_id of the parent folder, if any. This property cannot be changed
Expand Down
2 changes: 1 addition & 1 deletion packages/api/generated-schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -13416,6 +13416,7 @@ type TableOfContentsItem implements Node {
geoprocessingReferenceId: String
hasArcgisVectorLayer: Boolean
hasMetadata: Boolean
hasOriginalSourceUpload: Boolean!
hideChildren: Boolean!
id: Int!

Expand Down Expand Up @@ -13448,7 +13449,6 @@ type TableOfContentsItem implements Node {
A globally unique identifier. Can be used in various places throughout the system to identify this single value.
"""
nodeId: ID!
originalSourceUploadAvailable: Boolean!

"""
stable_id of the parent folder, if any. This property cannot be changed
Expand Down
5 changes: 5 additions & 0 deletions packages/api/migrations/committed/000303.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--! Previous: sha1:914941c36c70ee0354fa3de2b8dabbffbf00e217
--! Hash: sha1:27ebef88069524d4d51ed5eefa8339d63a1a617a

-- Enter migration here
comment on column table_of_contents_items.original_source_upload_available is '@name has_original_source_upload';
7 changes: 7 additions & 0 deletions packages/api/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8623,6 +8623,13 @@ COMMENT ON COLUMN public.table_of_contents_items.data_layer_id IS 'If is_folder=
COMMENT ON COLUMN public.table_of_contents_items.sort_index IS 'Position in the layer list';


--
-- Name: COLUMN table_of_contents_items.original_source_upload_available; Type: COMMENT; Schema: public; Owner: -
--

COMMENT ON COLUMN public.table_of_contents_items.original_source_upload_available IS '@name has_original_source_upload';


--
-- Name: import_arcgis_services(integer, public.arcgis_import_item[], public.arcgis_import_source[]); Type: FUNCTION; Schema: public; Owner: -
--
Expand Down
6 changes: 3 additions & 3 deletions packages/client/src/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12215,6 +12215,7 @@ export type TableOfContentsItem = Node & {
geoprocessingReferenceId?: Maybe<Scalars['String']>;
hasArcgisVectorLayer?: Maybe<Scalars['Boolean']>;
hasMetadata?: Maybe<Scalars['Boolean']>;
hasOriginalSourceUpload: Scalars['Boolean'];
hideChildren: Scalars['Boolean'];
id: Scalars['Int'];
/**
Expand All @@ -12236,7 +12237,6 @@ export type TableOfContentsItem = Node & {
metadata?: Maybe<Scalars['JSON']>;
/** A globally unique identifier. Can be used in various places throughout the system to identify this single value. */
nodeId: Scalars['ID'];
originalSourceUploadAvailable: Scalars['Boolean'];
/**
* stable_id of the parent folder, if any. This property cannot be changed
* directly. To rearrange items into folders, use the
Expand Down Expand Up @@ -15979,7 +15979,7 @@ export type GetLayerItemQuery = (
{ __typename?: 'Query' }
& { tableOfContentsItem?: Maybe<(
{ __typename?: 'TableOfContentsItem' }
& Pick<TableOfContentsItem, 'id' | 'bounds' | 'dataLayerId' | 'metadata' | 'parentStableId' | 'projectId' | 'stableId' | 'title' | 'enableDownload' | 'geoprocessingReferenceId' | 'primaryDownloadUrl' | 'originalSourceUploadAvailable'>
& Pick<TableOfContentsItem, 'id' | 'bounds' | 'dataLayerId' | 'metadata' | 'parentStableId' | 'projectId' | 'stableId' | 'title' | 'enableDownload' | 'geoprocessingReferenceId' | 'primaryDownloadUrl' | 'hasOriginalSourceUpload'>
& { acl?: Maybe<(
{ __typename?: 'Acl' }
& Pick<Acl, 'nodeId' | 'id' | 'type'>
Expand Down Expand Up @@ -23803,7 +23803,7 @@ export const GetLayerItemDocument = gql`
enableDownload
geoprocessingReferenceId
primaryDownloadUrl
originalSourceUploadAvailable
hasOriginalSourceUpload
dataLayer {
id
zIndex
Expand Down
6 changes: 3 additions & 3 deletions packages/client/src/generated/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12213,6 +12213,7 @@ export type TableOfContentsItem = Node & {
geoprocessingReferenceId?: Maybe<Scalars['String']>;
hasArcgisVectorLayer?: Maybe<Scalars['Boolean']>;
hasMetadata?: Maybe<Scalars['Boolean']>;
hasOriginalSourceUpload: Scalars['Boolean'];
hideChildren: Scalars['Boolean'];
id: Scalars['Int'];
/**
Expand All @@ -12234,7 +12235,6 @@ export type TableOfContentsItem = Node & {
metadata?: Maybe<Scalars['JSON']>;
/** A globally unique identifier. Can be used in various places throughout the system to identify this single value. */
nodeId: Scalars['ID'];
originalSourceUploadAvailable: Scalars['Boolean'];
/**
* stable_id of the parent folder, if any. This property cannot be changed
* directly. To rearrange items into folders, use the
Expand Down Expand Up @@ -15977,7 +15977,7 @@ export type GetLayerItemQuery = (
{ __typename?: 'Query' }
& { tableOfContentsItem?: Maybe<(
{ __typename?: 'TableOfContentsItem' }
& Pick<TableOfContentsItem, 'id' | 'bounds' | 'dataLayerId' | 'metadata' | 'parentStableId' | 'projectId' | 'stableId' | 'title' | 'enableDownload' | 'geoprocessingReferenceId' | 'primaryDownloadUrl' | 'originalSourceUploadAvailable'>
& Pick<TableOfContentsItem, 'id' | 'bounds' | 'dataLayerId' | 'metadata' | 'parentStableId' | 'projectId' | 'stableId' | 'title' | 'enableDownload' | 'geoprocessingReferenceId' | 'primaryDownloadUrl' | 'hasOriginalSourceUpload'>
& { acl?: Maybe<(
{ __typename?: 'Acl' }
& Pick<Acl, 'nodeId' | 'id' | 'type'>
Expand Down Expand Up @@ -21930,7 +21930,7 @@ export const GetLayerItemDocument = /*#__PURE__*/ gql`
enableDownload
geoprocessingReferenceId
primaryDownloadUrl
originalSourceUploadAvailable
hasOriginalSourceUpload
dataLayer {
id
zIndex
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/queries/DraftTableOfContents.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ query GetLayerItem($id: Int!) {
enableDownload
geoprocessingReferenceId
primaryDownloadUrl
originalSourceUploadAvailable
hasOriginalSourceUpload
dataLayer {
id
zIndex
Expand Down

0 comments on commit 86608f4

Please sign in to comment.