Skip to content

Commit

Permalink
Making the EntitySource.Type nullable (#1530)
Browse files Browse the repository at this point in the history
When it is a CosmosDB_NoSQL config, the entity 'type' is not important
as there are no types in CosmosDB_NoSQL, so we don't want anything
there.

Combining this with #1529 will see the value removed from the config
entirely
  • Loading branch information
aaronpowell authored Jun 22, 2023
1 parent 2cbd53c commit 59456c5
Show file tree
Hide file tree
Showing 39 changed files with 319 additions and 331 deletions.
6 changes: 0 additions & 6 deletions src/Auth/AuthorizationMetadataHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ public class EntityMetadata
/// Set of Http verbs enabled for Stored Procedure entities that have their REST endpoint enabled.
/// </summary>
public HashSet<SupportedHttpVerb> StoredProcedureHttpVerbs { get; set; } = new();

/// <summary>
/// Defines the type of database object the entity represents.
/// Examples include Table, View, StoredProcedure
/// </summary>
public EntitySourceType ObjectType { get; set; } = EntitySourceType.Table;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
{
FirstEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: FirstEntity,
Expand Down Expand Up @@ -67,7 +68,8 @@
{
FIRSTEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: FIRSTEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
{
MyEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: MyEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
{
MyEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: MyEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
{
MyEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: MyEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
{
FirstEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: FirstEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
{
FirstEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: FirstEntity,
Expand Down Expand Up @@ -67,7 +68,8 @@
{
SecondEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: SecondEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
MyEntity: {
Source: {
Object: s001.book,
Type: Table,
KeyFields: [
id,
name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
{
book: {
Source: {
Object: s001.book
Object: s001.book,
Type: Table
},
GraphQL: {
Singular: book,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
MyEntity: {
Source: {
Object: s001.book,
Type: Table,
KeyFields: [
id,
name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
{
MyEntity: {
Source: {
Object: s001.book
Object: s001.book,
Type: Table
},
GraphQL: {
Singular: MyEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
{
FirstEntity: {
Source: {
Object: Table1
Object: Table1,
Type: Table
},
GraphQL: {
Singular: FirstEntity,
Expand Down Expand Up @@ -71,7 +72,8 @@
{
SecondEntity: {
Source: {
Object: Table2
Object: Table2,
Type: Table
},
GraphQL: {
Singular: SecondEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
{
FirstEntity: {
Source: {
Object: Table1
Object: Table1,
Type: Table
},
GraphQL: {
Singular: FirstEntity,
Expand Down Expand Up @@ -71,7 +72,8 @@
{
SecondEntity: {
Source: {
Object: Table2
Object: Table2,
Type: Table
},
GraphQL: {
Singular: SecondEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
{
MyEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: MyEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
{
MyEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: MyEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
{
MyEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: MyEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
{
MyEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: MyEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
{
MyEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: MyEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
{
MyEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: MyEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
{
MyEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: MyEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
{
MyEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: MyEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
{
MyEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: MyEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
{
MyEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: MyEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
{
MyEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: MyEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
{
MyEntity: {
Source: {
Object: MyTable
Object: MyTable,
Type: Table
},
GraphQL: {
Singular: MyEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
MyEntity: {
Source: {
Object: s001.book,
Type: Table,
KeyFields: [
id,
name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
MyEntity: {
Source: {
Object: s001.book,
Type: Table,
KeyFields: [
id,
name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
{
MyEntity: {
Source: {
Object: s001.book
Object: s001.book,
Type: Table
},
GraphQL: {
Singular: MyEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
MyEntity: {
Source: {
Object: s001.book,
Type: Table,
KeyFields: [
col1,
col2
Expand Down
Loading

0 comments on commit 59456c5

Please sign in to comment.