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

feat: add edit event feature #601

Merged
merged 2 commits into from
Aug 13, 2023
Merged

Conversation

suzy-g38
Copy link
Collaborator

@suzy-g38 suzy-g38 commented Aug 9, 2023

Related Issue

  • Information about the related issue

Closes: #600

Describe the changes you've made

Add edit feature for events

Type of change

What sort of change have you made:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, local variables)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update.
  • This change requires a documentation update

How Has This Been Tested?

Checklist

  • My code follows the guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented on my code, particularly wherever it was hard to understand.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • Any dependent changes have been merged and published in downstream modules.

Screenshots (if applicable)

Original Updated
original screenshot updated screenshot

Code of Conduct

@vercel
Copy link

vercel bot commented Aug 9, 2023

@suzy-g38 is attempting to deploy a commit to the Vibey Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

github-actions bot commented Aug 9, 2023

Thank you, @suzy-g38, for creating this pull request and contributing to GitHub-ReadMe!
Our review team will thoroughly review the pull request and will reach out to you soon!
Please make sure you have marked all the completed tasks as done.
We appreciate your patience and contribution!

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you for creating a pull request for vibey!

We appreciate your contribution and are excited to review your changes. If you have any questions or need additional information, please don't hesitate to let us know. We look forward to working with you to improve vibey. Thanks again for your support!

If you want to keep contributing to open source and want to do it with a supportive and inclusive community, consider joining UniKonf. We help and encourage each other to make regular contributions to open source projects. If you have any questions, do not hesitate to ask. We look forward to having you as part of our community!

Comment on lines +16 to +27
const response = await fetch(
`${
process.env.NEXT_PUBLIC_API_ENDPOINT as string
}/api/events/update/${id}`,
{
method: 'post',
body: JSON.stringify(object),
headers: {
'Content-type': 'application/json',
},
}
).then((r) => {

Check failure

Code scanning / CodeQL

Server-side request forgery Critical

The
URL
of this request depends on a
user-provided value
.
Comment on lines +9 to +17
const response = await fetch(
`${process.env.NEXT_PUBLIC_API_ENDPOINT}/api/events/id/${id}`,
{
method: 'get',
headers: {
'Content-type': 'application/json',
},
}
).then((resp) => {

Check failure

Code scanning / CodeQL

Server-side request forgery Critical

The
URL
of this request depends on a
user-provided value
.
Comment on lines +85 to +87
const response = await fetch(
`http://localhost:5000/api/events/id/${id}`
).then((res) => res.json());

Check failure

Code scanning / CodeQL

Server-side request forgery Critical

The
URL
of this request depends on a
user-provided value
.
@suzy-g38
Copy link
Collaborator Author

@Deepu178 I have resolved the conflicts

@Deepu178 Deepu178 merged commit 8ba9232 into UniKonf:main Aug 13, 2023
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE]: Edit a certain event
2 participants