Skip to content

Queryparam support#1404

Closed
surendratiwari3 wants to merge 5 commits intofrain-dev:mainfrom
surendratiwari3:queryparam_support
Closed

Queryparam support#1404
surendratiwari3 wants to merge 5 commits intofrain-dev:mainfrom
surendratiwari3:queryparam_support

Conversation

@surendratiwari3
Copy link

@surendratiwari3 surendratiwari3 commented Feb 28, 2023

This PR will add extension to convoy for sending query param received on ingest url to endpoint url. This will also store it in event and event_delivery document.

Referenced Issue

https://github.com/frain-dev/convoy/issues/1400

@subomi

@subomi
Copy link
Collaborator

subomi commented Feb 28, 2023

Hey @surendratiwari3, The build is failing. Please can you check it out?

@surendratiwari3
Copy link
Author

@subomi can you check now?

@subomi
Copy link
Collaborator

subomi commented Mar 1, 2023

@surendratiwari3 It seems the build still has problems.

Data: newMessage.Data,
Raw: newMessage.Raw,
Headers: e.getCustomHeaders(newMessage.CustomHeaders),
QueryParams: newMessage.QueryParams,
Copy link
Collaborator

Choose a reason for hiding this comment

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

@surendratiwari3 I think It's better to limit this to the ingest path alone. I can't think of a good use-case for doing this via the API. Also, the contract will be confusing as to what is for our REST API and what should be proxied.

ProjectID string `json:"project_id,omitempty" db:"project_id"`
Endpoints pq.StringArray `json:"endpoints" db:"endpoints"`
Headers httpheader.HTTPHeader `json:"headers" db:"headers"`
QueryParams url.Values `json:"query_params" bson:"query_params"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

@surendratiwari3 We switched to PostgreSQL as our default store, you need to switch this up for it to work.

Copy link
Collaborator

@subomi subomi left a comment

Choose a reason for hiding this comment

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

@surendratiwari3 The build is passing now, but I left some feedback. :)

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@subomi
Copy link
Collaborator

subomi commented Jun 7, 2023

Fixed in #1640

@subomi subomi closed this Jun 7, 2023
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.

3 participants