From d60e7f5905855f29e5821329e35e0b9c056042e3 Mon Sep 17 00:00:00 2001
From: Animesh Pathak <53110238+Sonichigo@users.noreply.github.com>
Date: Tue, 24 May 2022 17:20:16 +0530
Subject: [PATCH 01/57] Proposed changes to Fix Issue #4195
---
web/spec/supabase.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml
index 48cc578f9fc..18f3607fe01 100644
--- a/web/spec/supabase.yml
+++ b/web/spec/supabase.yml
@@ -1391,6 +1391,7 @@ pages:
.on('UPDATE', handleRecordUpdated)
.subscribe()
```
+ **Note** ``eq`` is a filter that can return events that match the filter, but as of now only works with Integers
removeSubscription():
title: 'removeSubscription()'
From 9bc4fcc7f90539a037f47a02a88381737bf51907 Mon Sep 17 00:00:00 2001
From: Joshen Lim
- We've raised over $36 million in funding, backed by some of the world's leading
+ We've raised over $116 million in funding, backed by some of the world's leading
investors.
`,
- ''
- )
-
- // Add note
- const noteResponse = await fetch(
- `https://api.hubapi.com/crm/v3/objects/notes?hapikey=${HUBSPOT_API_KEY}`,
- {
- method: 'POST',
- headers: {
- Accept: 'application/json',
- 'Content-Type': 'application/json',
- },
- body: JSON.stringify({
- properties: {
- hs_timestamp: Date.now(),
- hs_note_body: noteContent,
- hubspot_owner_id: OWNER_ID,
- },
- }),
- }
- )
-
- const noteBody = await noteResponse.json()
-
- if (!noteResponse.ok) {
- console.log(`Failed to add note`, noteBody)
- return new Response(`Failed to add note`, { status: 500 })
- }
-
- const noteId = noteBody.id
-
- // Associate note with contact
- const noteAssociateResponse = await fetch(
- `https://api.hubapi.com/crm/v3/objects/notes/${noteId}/associations/contacts/${contactId}/note_to_contact?hapikey=${HUBSPOT_API_KEY}`,
- {
- method: 'PUT',
- headers: {
- Accept: 'application/json',
- 'Content-Type': 'application/json',
- },
- }
- )
-
- if (!noteAssociateResponse.ok) {
- console.log(`Failed to associate note`, await noteAssociateResponse.json())
- return new Response(`Failed to associate note`, { status: 500 })
- }
-
- // Create deal
- const dealCloseDate = new Date()
- dealCloseDate.setDate(dealCloseDate.getDate() + 28) // 28 days
-
- const dealResponse = await fetch(
- `https://api.hubapi.com/crm/v3/objects/deals?hapikey=${HUBSPOT_API_KEY}`,
- {
- method: 'POST',
- headers: {
- Accept: 'application/json',
- 'Content-Type': 'application/json',
- },
- body: JSON.stringify({
- properties: {
- closedate: dealCloseDate.toISOString(),
- dealname: company || `${firstName} ${lastName}`,
- dealstage:
- input.table === 'enterprise_contacts' ? ENTERPRISE_DEAL_STAGE : PARTNERS_DEAL_STAGE,
- hubspot_owner_id: OWNER_ID,
- pipeline: input.table === 'enterprise_contacts' ? ENTERPRISE_PIPELINE : PARTNERS_PIPELINE,
- },
- }),
- }
- )
-
- const dealBody = await dealResponse.json()
-
- if (!dealResponse.ok) {
- console.log(`Failed to create deal`, dealBody)
- return new Response(`Failed to create deal: ` + dealBody.message, { status: 500 })
- }
-
- const dealId = dealBody.id
-
- // Associate contact with a deal
- const dealAssociateResponse = await fetch(
- `https://api.hubapi.com/crm/v3/objects/contacts/${contactId}/associations/deals/${dealId}/contact_to_deal?hapikey=${HUBSPOT_API_KEY}`,
- {
- method: 'PUT',
- headers: {
- Accept: 'application/json',
- 'Content-Type': 'application/json',
- },
- }
- )
-
- if (!dealAssociateResponse.ok) {
- console.log(`Failed to associate contact with deal`, await dealAssociateResponse.json())
- return new Response(`Failed to associate contact with deal`, { status: 500 })
+ if (!formResponse.ok) {
+ console.log(
+ `Failed to submit form data to HubSpot`,
+ await formResponse.json(),
+ );
+ return new Response(`Failed to submit form data to HubSpot`, {
+ status: 500,
+ });
}
return new Response(JSON.stringify({ done: true }), {
- headers: { 'Content-Type': 'application/json' },
- })
-})
+ headers: { "Content-Type": "application/json" },
+ });
+});
From 7fb43171f43b4cdd34579d321060b8aad7f2e421 Mon Sep 17 00:00:00 2001
From: Copple <10214025+kiwicopple@users.noreply.github.com>
Date: Mon, 30 May 2022 19:06:16 +1000
Subject: [PATCH 04/57] Adds some differnces between local and platform
fix: https://github.com/supabase/supabase/issues/6965
---
web/docs/guides/local-development.mdx | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/web/docs/guides/local-development.mdx b/web/docs/guides/local-development.mdx
index c6c5a6eba8c..ec99bbdb8e2 100644
--- a/web/docs/guides/local-development.mdx
+++ b/web/docs/guides/local-development.mdx
@@ -234,8 +234,21 @@ supabase db push
### Deploying Edge Functions
-Coming soon!
+You can deploy any Edge Functions using [`functions deploy`](/docs/reference/cli/supabase-functions-deploy):
+```sh
+supabase functions deploy