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

url encode sheet name to fix invalid endpoint error #298

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

shekharnwagh
Copy link
Contributor

@shekharnwagh shekharnwagh commented Jan 15, 2025

Changes

  • Fixes the following bug which led to error in case of the Google Sheet name containing spaces: -

    [RemoteDataBlocks\Config\Query\HttpQuery] Object must have valid property: endpoint; Value must be one of the specified types: https://sheets.googleapis.com/v4/spreadsheets/1TNzTWHKvLByff54zetjGylYlAGZ8EFN5ih86b22R15A/values/To do

    URL Encoding the sheet name before appending it to the Google Sheets API URL to create the HTTPQuery endpoint solves the issue.

  • Fixes the bug columns with spaces for Google Sheets data sources are not being displayed in the Google Sheets settings page by using the brackets notation for the field paths in the output query mappings.

Links

Testing

  • Start the local development environment (docs)
  • Try adding a Google Sheets data source with a sheet name containing spaces and verify that the data source is added successfully. Verify that the blocks are added for this data source and they work as expected.

@shekharnwagh shekharnwagh merged commit fb788ec into trunk Jan 15, 2025
12 checks passed
@shekharnwagh shekharnwagh deleted the fix/google-sheets-name-space branch January 15, 2025 19:31
chriszarate pushed a commit that referenced this pull request Jan 15, 2025
* url encode sheet name to fix invalid endpoint error

* use bracket notation for defining JSON path for Google Sheets
chriszarate added a commit that referenced this pull request Jan 16, 2025
* initial changes

* adding strengths and weaknesses

* edits and renaming

* another name change and airtable stuff

* updating google sheets

* adding screen shot

* adding screen shot

* adding shopify and Salesforce skeleton

* final first-pass updates to tutorials

* Airtable tutorial grammatical fixes

Signed-off-by: brookewp <[email protected]>

* Google sheets tutorial grammatical fixes

Signed-off-by: brookewp <[email protected]>

* Salesforce tutorial grammatical fixes

Signed-off-by: brookewp <[email protected]>

* Shopify tutorial grammatical fixes

Signed-off-by: brookewp <[email protected]>

* HTTP tutorial grammatical fixes

Signed-off-by: brookewp <[email protected]>

* Concepts grammatical fixes and formatting

Signed-off-by: brookewp <[email protected]>

* Tutorial docs formatting

Signed-off-by: brookewp <[email protected]>

* Remaining proof-read docs

Signed-off-by: brookewp <[email protected]>

* adding block-bindings document

* cleaning up final changes from Workflows to Tutorials

* Add links from concepts index page

* Fix formatting

* Reordering to reflect sequence of events and utility

* Flesh out block registration options

* small updates

* updates to query

* settings forms fixes (#297)

* allow undefined values for handleOnChange to match allowed undefined in state values

* allow adding invalid string in google credentials input

* reset google spreadsheet and sheet inputs on credentials change

* reset airtable base and tables on token change

* update the register blocks function names in airtable conference event block registration

* url encode sheet name to fix invalid endpoint error (#298)

* url encode sheet name to fix invalid endpoint error

* use bracket notation for defining JSON path for Google Sheets

* Remove example glue code and example access tokens

* Update "Conference events" example

* Fix formatting

* adding better type documentation

* Fix block registration code example

Signed-off-by: brookewp <[email protected]>

* Add ServerSideRender package and types

* Update Elden Ring Map example to Leaflet Map block

To simplify, this block no longer uses register_remote_data_block or the
Interactivity API.

* fix typo and improve link by linking to a section of file

* fix formatting

* Update GitHub example

* Update Google Sheets example

* Minor example README updates

* Update Shopify example

* Restore linting to example code

* Remove unused suppression

* Update Beta warning

* Update Zip code example

* Update Art example

* Fix typo

* Add entrypoint README

---------

Signed-off-by: brookewp <[email protected]>
Co-authored-by: brookewp <[email protected]>
Co-authored-by: chriszarate <[email protected]>
Co-authored-by: Shekhar Wagh <[email protected]>
Co-authored-by: Shekhar Wagh <[email protected]>
maxschmeling added a commit that referenced this pull request Jan 18, 2025
* initial changes

* adding strengths and weaknesses

* edits and renaming

* another name change and airtable stuff

* updating google sheets

* adding screen shot

* adding screen shot

* adding shopify and Salesforce skeleton

* final first-pass updates to tutorials

* Airtable tutorial grammatical fixes

Signed-off-by: brookewp <[email protected]>

* Google sheets tutorial grammatical fixes

Signed-off-by: brookewp <[email protected]>

* Salesforce tutorial grammatical fixes

Signed-off-by: brookewp <[email protected]>

* Shopify tutorial grammatical fixes

Signed-off-by: brookewp <[email protected]>

* HTTP tutorial grammatical fixes

Signed-off-by: brookewp <[email protected]>

* Concepts grammatical fixes and formatting

Signed-off-by: brookewp <[email protected]>

* Tutorial docs formatting

Signed-off-by: brookewp <[email protected]>

* Remaining proof-read docs

Signed-off-by: brookewp <[email protected]>

* adding block-bindings document

* cleaning up final changes from Workflows to Tutorials

* Add links from concepts index page

* Fix formatting

* Reordering to reflect sequence of events and utility

* Flesh out block registration options

* small updates

* updates to query

* settings forms fixes (#297)

* allow undefined values for handleOnChange to match allowed undefined in state values

* allow adding invalid string in google credentials input

* reset google spreadsheet and sheet inputs on credentials change

* reset airtable base and tables on token change

* update the register blocks function names in airtable conference event block registration

* url encode sheet name to fix invalid endpoint error (#298)

* url encode sheet name to fix invalid endpoint error

* use bracket notation for defining JSON path for Google Sheets

* Remove example glue code and example access tokens

* Update "Conference events" example

* Fix formatting

* adding better type documentation

* Fix README typo

* Slight rewording in Block Bindings docs

* Slight rewording in Airtable tutorial

* Reorder tutorials list to be alphabetical

* Add more detail to the HTTP tutorial

* Add Shopify steps for setting up API access

* Formatting fixes

* Move warning and use GitHub notice style

* Remove outdated instructions

* Remove link

* Promote Next Steps

* Remove footer (it's duplicated on remotedatablocks.com)

* Fix tutorial links

* Update code example links

* Fix tutorials link

* Small grammar fix

* Update link to LICENSE (not a Markdown file)

* Use absolute image references

* query examples

* finishing up output schema revisions

* grammer stuff

* Start of a Quickstart

* extending extending

* grammer changes

* update to block patterns

* fixing typo

* start work on block registration

* More content in the quickstart

* Auto formatting

---------

Signed-off-by: brookewp <[email protected]>
Co-authored-by: Jacob Wayne Smith <[email protected]>
Co-authored-by: brookewp <[email protected]>
Co-authored-by: chriszarate <[email protected]>
Co-authored-by: Shekhar Wagh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants