Skip to content

Commit

Permalink
Remove asset references (#161)
Browse files Browse the repository at this point in the history
* Removing references to the Asset SObject

* Releasing new package version
  • Loading branch information
cesarParra committed Sep 13, 2024
1 parent c5fa7ee commit 150cb3d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 43 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ $RECYCLE.BIN/
/force-app/main/default/profiles/
/IlluminatedCloud/Expression/OfflineSymbolTable.zip
/src-pull/main
/.localdev/
2 changes: 1 addition & 1 deletion docs/src/markdoc/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const variables = {
tags,
nodes,
variables: {
packageId: "04tRb000001TfwrIAC",
packageId: "04tRb000001iDH7IAM",
componentPackageId: "04tRb0000012Mv8IAE",
urlPrefix: IS_PROD ? "/expression" : "",
}
Expand Down
40 changes: 0 additions & 40 deletions expression-src/main/src/helpers/q/tests/QInMemoryDatabaseTest.cls
Original file line number Diff line number Diff line change
Expand Up @@ -417,46 +417,6 @@ private class QInMemoryDatabaseTest {
Assert.areEqual(contact2, results[0]);
}

@IsTest
static void canQueryUsingACondition_dateTimesThatAreEqual() {
Datetime dateTime1 = Datetime.newInstance(2020, 1, 1, 1, 1, 1);
Datetime dateTime2 = Datetime.newInstance(2020, 1, 1, 1, 1, 2);

Asset asset1 = new Asset(UptimeRecordStart = dateTime1);
Asset asset2 = new Asset(UptimeRecordStart = dateTime2);
db.doInsert(new List<Asset>{
asset1, asset2
});

Q query = new Q(Asset.SObjectType)
.add(Q.condition('UptimeRecordStart').equalsTo(dateTime1));

List<SObject> results = db.run(query);

Assert.areEqual(1, results.size());
Assert.areEqual(asset1, results[0]);
}

@IsTest
static void canQueryUsingACondition_dateTimesThatAreNotEqual() {
Datetime dateTime1 = Datetime.newInstance(2020, 1, 1, 1, 1, 1);
Datetime dateTime2 = Datetime.newInstance(2020, 1, 1, 1, 1, 2);

Asset asset1 = new Asset(UptimeRecordStart = dateTime1);
Asset asset2 = new Asset(UptimeRecordStart = dateTime2);
db.doInsert(new List<Asset>{
asset1, asset2
});

Q query = new Q(Asset.SObjectType)
.add(Q.condition('UptimeRecordStart').notEqualsTo(dateTime1));

List<SObject> results = db.run(query);

Assert.areEqual(1, results.size());
Assert.areEqual(asset2, results[0]);
}

@IsTest
static void canQueryUsingACondition_lessThan() {
Account account1 = new Account(Name = 'Test Account', NumberOfEmployees = 10);
Expand Down
5 changes: 3 additions & 2 deletions sfdx-project_packaging.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"path": "expression-src",
"package": "Expression",
"versionName": "Version 1.11",
"versionNumber": "1.11.0.NEXT",
"versionNumber": "1.12.0.NEXT",
"default": false,
"versionDescription": "Expression core language",
"ancestorVersion": "HIGHEST"
Expand Down Expand Up @@ -40,6 +40,7 @@
"Expression@1.8.0-2": "04tRb000001EM3JIAW",
"Expression@1.9.0-1": "04tRb000001GNL3IAO",
"Expression@1.10.0-1": "04tRb000001SS2PIAW",
"Expression@1.11.0-1": "04tRb000001TfwrIAC"
"Expression@1.11.0-1": "04tRb000001TfwrIAC",
"Expression@1.12.0-1": "04tRb000001iDH7IAM"
}
}

0 comments on commit 150cb3d

Please sign in to comment.