Skip to content

Commit

Permalink
fix: roll back graphQL custom field reference (#816)
Browse files Browse the repository at this point in the history
* fix: graphQL custom field reference

* Multi object query graphql recipe (#817)

* fix: graphQL custom field reference

* feat: add multiple object query GraphQL recipe
fix: data and errors can be returned at the same time

* fix: data and errors can come at the same time
fix: code review suggestions

* fix: revert getContact changes

---------

Co-authored-by: pozil <pozil@salesforce.com>

* docs: clarify listViewApiName needs updated if not using recipe org (#818)

* build(deps-dev): bump @lwc/eslint-plugin-lwc from 1.6.2 to 1.6.3

Bumps [@lwc/eslint-plugin-lwc](https://github.com/salesforce/eslint-plugin-lwc) from 1.6.2 to 1.6.3.
- [Release notes](https://github.com/salesforce/eslint-plugin-lwc/releases)
- [Commits](salesforce/eslint-plugin-lwc@v1.6.2...v1.6.3)

---
updated-dependencies:
- dependency-name: "@lwc/eslint-plugin-lwc"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps-dev): bump eslint-plugin-jest from 27.2.1 to 27.2.2

Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.2.1 to 27.2.2.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](jest-community/eslint-plugin-jest@v27.2.1...v27.2.2)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps-dev): bump eslint from 8.42.0 to 8.44.0

Bumps [eslint](https://github.com/eslint/eslint) from 8.42.0 to 8.44.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.42.0...v8.44.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps-dev): bump @salesforce/eslint-config-lwc from 3.4.0 to 3.5.0

Bumps [@salesforce/eslint-config-lwc](https://github.com/salesforce/eslint-config-lwc) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/salesforce/eslint-config-lwc/releases)
- [Commits](salesforce/eslint-config-lwc@v3.4.0...v3.5.0)

---
updated-dependencies:
- dependency-name: "@salesforce/eslint-config-lwc"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps-dev): bump jest-canvas-mock from 2.5.1 to 2.5.2

Bumps [jest-canvas-mock](https://github.com/hustcc/jest-canvas-mock) from 2.5.1 to 2.5.2.
- [Release notes](https://github.com/hustcc/jest-canvas-mock/releases)
- [Changelog](https://github.com/hustcc/jest-canvas-mock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hustcc/jest-canvas-mock/commits)

---
updated-dependencies:
- dependency-name: jest-canvas-mock
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps-dev): bump @sa11y/jest from 5.1.0 to 5.2.0

Bumps [@sa11y/jest](https://github.com/salesforce/sa11y/tree/HEAD/packages/jest) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/salesforce/sa11y/releases)
- [Changelog](https://github.com/salesforce/sa11y/blob/master/CHANGELOG.md)
- [Commits](https://github.com/salesforce/sa11y/commits/v5.2.0/packages/jest)

---
updated-dependencies:
- dependency-name: "@sa11y/jest"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps-dev): bump lint-staged from 13.2.2 to 13.2.3

Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.2.2 to 13.2.3.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](lint-staged/lint-staged@v13.2.2...v13.2.3)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4

Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* ci: moved default issue assignee to variable

* ci: clean/align conditions syntax

* ci: merged regular and prerelease worflows

* ci: fix prerelease PR check

* feat: upgraded in-app guidance

* ci: conditional pre-release build

* build(deps-dev): bump eslint-plugin-import from 2.27.5 to 2.28.0

Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.27.5 to 2.28.0.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](import-js/eslint-plugin-import@v2.27.5...v2.28.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-import
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps-dev): bump eslint-plugin-jest from 27.2.2 to 27.2.3

Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.2.2 to 27.2.3.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](jest-community/eslint-plugin-jest@v27.2.2...v27.2.3)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps-dev): bump eslint from 8.44.0 to 8.46.0

Bumps [eslint](https://github.com/eslint/eslint) from 8.44.0 to 8.46.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.44.0...v8.46.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* ci: simplified packaging PR process

* build(deps-dev): bump @salesforce/eslint-config-lwc from 3.5.0 to 3.5.2

Bumps [@salesforce/eslint-config-lwc](https://github.com/salesforce/eslint-config-lwc) from 3.5.0 to 3.5.2.
- [Release notes](https://github.com/salesforce/eslint-config-lwc/releases)
- [Commits](salesforce/eslint-config-lwc@v3.5.0...v3.5.2)

---
updated-dependencies:
- dependency-name: "@salesforce/eslint-config-lwc"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* build: bumped dependencies

* build: bumped dependencies

* feat: migrated from promises to async/await (#836)

* feat: migrated from promises to async/await

* fix: clean test CSS selectors

* fix: removed duplicate lightning mocks

* Released new package version 04t3t0000037toQAAQ (#837)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* feat: simplified test code

* Released new package version 04t3t0000037tozAAA (#838)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* feat: shortened function body

* Released new package version 04t3t0000037tp9AAA (#839)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* feat: align test comments

* Released new package version 04t3t0000037tpEAAQ (#840)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* build: upgraded to API v59.0

* Multi object query graphql recipe (#817)

* fix: graphQL custom field reference

* feat: add multiple object query GraphQL recipe
fix: data and errors can be returned at the same time

* fix: data and errors can come at the same time
fix: code review suggestions

* fix: revert getContact changes

---------

Co-authored-by: pozil <pozil@salesforce.com>

* build: bumped dependencies

* feat: migrated from promises to async/await (#836)

* feat: migrated from promises to async/await

* fix: clean test CSS selectors

* fix: removed duplicate lightning mocks

* feat: align test comments

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Alba Rivas <arivas@salesforce.com>
Co-authored-by: spencer-brooks-sf <42548303+spencer-brooks-sf@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Philippe Ozil <pozil@pozil-ltmjx7n.internal.salesforce.com>
Co-authored-by: Trailheadapps Bot <69584871+trailheadapps-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
7 people authored Sep 22, 2023
1 parent 0ae0572 commit 17e991a
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ describe('c-composition-contact-search', () => {
// Wait for any asynchronous DOM updates
await flushPromises();
await flushPromises();
await flushPromises();

const contactTileEl =
element.shadowRoot.querySelector('c-contact-tile');
Expand Down
16 changes: 14 additions & 2 deletions force-app/main/default/lwc/graphqlContacts/graphqlContacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ export default class GraphqlContacts extends LightningElement {
query getContacts {
uiapi {
query {
Contact(first: 5, orderBy: { Name: { order: ASC } }) {
Contact(
where: { Picture__c: { ne: null } }
first: 5
orderBy: { Name: { order: ASC } }
) {
edges {
node {
Id
Expand All @@ -17,6 +21,14 @@ export default class GraphqlContacts extends LightningElement {
Phone {
value
}
# We specify an alias for this custom field to ensure
# that we can find it in the result even if Salesforce's
# referential integrity logic updates the name. API names
# for standard fields do not change, so no aliases are
# needed for those.
Picture__c: Picture__c {
value
}
Title {
value
}
Expand All @@ -35,7 +47,7 @@ export default class GraphqlContacts extends LightningElement {
Id: edge.node.Id,
Name: edge.node.Name.value,
Phone: edge.node.Phone.value,
Picture__c: null, // Temporary workaround for a bug that prevents using custom fields in GraphQL
Picture__c: edge.node.Picture__c.value,
Title: edge.node.Title.value
}));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ describe('c-lds-create-record', () => {
// Wait for any asynchronous DOM updates
await flushPromises();
await flushPromises();
await flushPromises();

// Select element for validation
const displayEl = element.shadowRoot.querySelector(
Expand Down
18 changes: 18 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion sfdx-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"sfdcLoginUrl": "https://login.salesforce.com",
"packageAliases": {
"LWCRecipes": "0Ho3t000000KywNCAS",
"LWCRecipes@58.0.0-9": "04t3t0000037tr0AAA",
"LWCRecipes@58.0.0-10": "04t3t0000037tzEAAQ"
}
}

0 comments on commit 17e991a

Please sign in to comment.