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

add westeros houses example using google sheets #33

Merged
merged 31 commits into from
Sep 13, 2024
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
4cfb73e
feat: add google token generation from service account
shekharnwagh Sep 2, 2024
8a796f0
feat: add google-sheet source in cruds
shekharnwagh Sep 6, 2024
f8f6919
feat: add google-sheet source in settings page
shekharnwagh Sep 6, 2024
ca6ce37
style: format spacing in object
shekharnwagh Sep 6, 2024
db7b46a
Merge branch 'trunk' into add/google-oauth
shekharnwagh Sep 9, 2024
1358e81
chore: update service name formatting in table
shekharnwagh Sep 9, 2024
7d50e6d
Merge branch 'trunk' into add/google-oauth
shekharnwagh Sep 10, 2024
9430911
feat: add westeros houses example using google sheets
shekharnwagh Sep 10, 2024
ab79539
feat: skip cache when fetching google token via rest API
shekharnwagh Sep 10, 2024
3befbdd
style: lint fixes
shekharnwagh Sep 10, 2024
9654e51
Merge branch 'trunk' into add/google-oauth
shekharnwagh Sep 12, 2024
234f952
Merge branch 'add/google-oauth' into add/google-sheets-westeros-house…
shekharnwagh Sep 12, 2024
fe2fb9a
Merge branch 'trunk' into add/google-oauth
maxschmeling Sep 12, 2024
5b8d55f
Merge branch 'add/google-oauth' into add/google-sheets-westeros-house…
shekharnwagh Sep 12, 2024
4ac9a2f
Merge branch 'trunk' into add/google-oauth
maxschmeling Sep 12, 2024
9164d54
Merge branch 'add/google-oauth' into add/google-sheets-westeros-house…
shekharnwagh Sep 12, 2024
ed6a8ac
fix: use cache-group when reading token from cache
shekharnwagh Sep 12, 2024
234f13e
Merge branch 'trunk' into add/google-oauth
maxschmeling Sep 12, 2024
648651c
Merge branch 'add/google-oauth' into add/google-sheets-westeros-house…
shekharnwagh Sep 12, 2024
6220563
Merge branch 'trunk' of github.com:Automattic/remote-data-blocks into…
shekharnwagh Sep 12, 2024
042b099
update westeros houses block name
shekharnwagh Sep 12, 2024
149b7d3
Merge branch 'trunk' into add/google-sheets-westeros-houses-example
chriszarate Sep 12, 2024
b727177
Add missing method
maxschmeling Sep 12, 2024
eb6a9b4
Merge branch 'trunk' into add/google-sheets-westeros-houses-example
mhsdef Sep 13, 2024
dfa7870
use HttpQueryContext instead of QueryContext
shekharnwagh Sep 13, 2024
862321d
remove duplicate get_display_name
shekharnwagh Sep 13, 2024
7f9547a
use snake-case for rowId
shekharnwagh Sep 13, 2024
53146b3
spacing lint fix
shekharnwagh Sep 13, 2024
b26e717
add new Google Sheets variable to .wp-env.override.example.json
shekharnwagh Sep 13, 2024
85090a7
move google-auth logic to integrations dir
shekharnwagh Sep 13, 2024
6f98b68
add doc comments
shekharnwagh Sep 13, 2024
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
Prev Previous commit
Next Next commit
use snake-case for rowId
shekharnwagh committed Sep 13, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 7f9547af9f44272ead8129ff5e818014463345d3
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ class GetWesterosHousesQuery extends HttpQueryContext {
public array $output_variables = [
'is_collection' => false,
'mappings' => [
'rowId' => [
'row_id' => [
'name' => 'Row ID',
'path' => '$.RowId',
'type' => 'id',
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ public function process_response( string $raw_response_data, array $input_variab
$parsed_response_data['values'] = array_map(
function ( $row, $index ) {
$combined = array_combine( self::COLUMNS, $row );
$combined['RowId'] = $index + 1; // Add rowId field, starting from 1
$combined['RowId'] = $index + 1; // Add row_id field, starting from 1
return $combined;
},
$values,