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

Fix performance tests #6665

Merged
merged 2 commits into from
May 23, 2024
Merged

Fix performance tests #6665

merged 2 commits into from
May 23, 2024

Conversation

elle-j
Copy link
Member

@elle-j elle-j commented May 13, 2024

What, How & Why?

Fixes the broken performance tests and makes the type outputs from the tests consistent (no matter how you pass in the property schema).

@cla-bot cla-bot bot added the cla: yes label May 13, 2024
@elle-j elle-j added no-changelog no-jira-ticket Skip checking the PR title for Jira reference labels May 13, 2024
}
} else {
return type;
const COLLECTION_MARKERS: Readonly<Record<string, string>> = {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Widening the type here for better ergonomics when bracket accessing it by an unknown string (and that's the only way it's used in this file).

* "int?[]" -> "int?[]"
* { type: "list", objectType: "int", optional: true } -> "int?[]"
*/
function getTypeDisplayName(schema: PropertySchemaShorthand | PropertySchema) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renaming from getTypeName to disambiguate it from the various usages of type we have.

@elle-j elle-j marked this pull request as ready for review May 13, 2024 17:27
@elle-j elle-j requested a review from kraenhansen May 21, 2024 10:44
@elle-j elle-j merged commit fd50d2e into main May 23, 2024
30 checks passed
@elle-j elle-j deleted the lj/perf-tests branch May 23, 2024 11:01
papafe added a commit that referenced this pull request May 23, 2024
* main: (22 commits)
  Prepare for vNext (#6677)
  [12.9.0] Bump version (#6676)
  Fix performance tests (#6665)
  Combined: Support `Mixed` data type with collections (#6613)
  Update expected error messages (#6674)
  Adding --latest-local to the baas test server CLI (#6673)
  Upgrade to Realm Core v14.7.0 (#6663)
  Upgrade @trunk/launcher to v1.3.1 to support Apple's versioning scheme for macOS (#6671)
  Prepare for vNext (#6669)
  [12.8.1] Bump version (#6668)
  Use unreleased core (#6667)
  Fix realm/react changelog (#6661)
  Fix GHA error when publishing package release (#6660)
  Prepend vNext to realm/react changelog.
  [realm-react-0.7.0] Bump version (#6658)
  Update OAuth2Helper to remove accessing the stitch prefix (#6659)
  Fix unresolvable links in API reference docs and remove re-exports (#6646)
  Prepare for vNext (#6645)
  [12.8.0] Bump version (#6643)
  Upgrade to HEAD of Realm Core's master (#6637)
  ...

# Conflicts:
#	CHANGELOG.md
#	integration-tests/tests/src/tests/mixed.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes no-changelog no-jira-ticket Skip checking the PR title for Jira reference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants