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

docs: remove obsolete samples #2717

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 0 additions & 14 deletions firestore/api/FirestoreTest/FirestoreTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -667,13 +667,6 @@ public void RangeQueryTest()
Assert.DoesNotContain("Document BJ returned by query CA<=State<=IN", output.Stdout);
}

[Fact]
public void InvalidRangeQueryTest()
{
RunQueryData("query-create-examples", Environment.GetEnvironmentVariable("FIRESTORE_PROJECT_ID"));
var output = RunQueryData("invalid-range-query", Environment.GetEnvironmentVariable("FIRESTORE_PROJECT_ID"));
}

[Fact]
public void SubcollectionQueryTest()
{
Expand Down Expand Up @@ -756,13 +749,6 @@ public void RangeOrderByQueryTest()
Assert.DoesNotContain("Document DC returned by range with order by query", output.Stdout);
}

[Fact]
public void InvalidRangeOrderByQueryTest()
{
RunQueryData("query-create-examples", Environment.GetEnvironmentVariable("FIRESTORE_PROJECT_ID"));
var output = RunOrderLimitData("invalid-range-order-by-query", Environment.GetEnvironmentVariable("FIRESTORE_PROJECT_ID"));
}

// DATA MODEL TESTS
[Fact]
public void DocumentRefTest()
Expand Down
16 changes: 0 additions & 16 deletions firestore/api/OrderLimitData/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ Where command is one of
order-by-state-and-population-query
where-order-by-limit-query
range-order-by-query
invalid-range-order-by-query
";

private static async Task OrderByNameLimitQuery(string project)
Expand Down Expand Up @@ -112,17 +111,6 @@ private static async Task RangeOrderByQuery(string project)
}
}

private static void InvalidRangeOrderByQuery(string project)
{
FirestoreDb db = FirestoreDb.Create(project);
CollectionReference citiesRef = db.Collection("cities");
// [START firestore_query_order_field_invalid]
Query query = citiesRef
.WhereGreaterThan("Population", 2500000)
.OrderBy("Country");
// [END firestore_query_order_field_invalid]
}

public static void Main(string[] args)
{
if (args.Length < 2)
Expand Down Expand Up @@ -155,10 +143,6 @@ public static void Main(string[] args)
RangeOrderByQuery(project).Wait();
break;

case "invalid-range-order-by-query":
InvalidRangeOrderByQuery(project);
break;

default:
Console.Write(Usage);
return;
Expand Down
16 changes: 0 additions & 16 deletions firestore/api/QueryData/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ Where command is one of
chained-query
composite-index-chained-query
range-query
invalid-range-query
";
private static async Task QueryCreateExamples(string project)
{
Expand Down Expand Up @@ -307,17 +306,6 @@ private static async Task RangeQuery(string project)
}
}

private static void InvalidRangeQuery(string project)
{
FirestoreDb db = FirestoreDb.Create(project);
// [START firestore_query_filter_range_invalid]
CollectionReference citiesRef = db.Collection("cities");
Query invalidRangeQuery = citiesRef
.WhereGreaterThanOrEqualTo("State", "CA")
.WhereGreaterThan("Population", 1000000);
// [END firestore_query_filter_range_invalid]
}

public static void Main(string[] args)
{
if (args.Length < 2)
Expand Down Expand Up @@ -382,10 +370,6 @@ public static void Main(string[] args)
RangeQuery(project).Wait();
break;

case "invalid-range-query":
InvalidRangeQuery(project);
break;

default:
Console.Write(Usage);
return;
Expand Down