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

[master < T1099] Add non-const mgp::Value return type for C++ API #1099

Merged
merged 5 commits into from
Jul 28, 2023

Conversation

mpintaric55334
Copy link
Contributor

@mpintaric55334 mpintaric55334 commented Jul 24, 2023

Using functions defined in mgp::Value, that return the Type of the value, such as ValueList, that extracted mgp::List from mgp::Value, only returned const types. While writing collections query module, there was need to return non const variables so move semantics could be used, this PR does exactly that.
[master < Task] PR

  • Check, and update documentation if necessary
  • Provide the full content or a guide for the final git message

To keep docs changelog up to date, one more thing to do:

  • Write a release note here
    You are now able to extract non const data from mgp::Value @antoniofilipovic could you help me phrase this better, I dont think this is good.

  • Tag someone from docs team in the comments

@mpintaric55334 mpintaric55334 added the Ready for review PR is ready for review label Jul 24, 2023
@mpintaric55334 mpintaric55334 self-assigned this Jul 24, 2023
@mpintaric55334 mpintaric55334 changed the title [master < T1096] Add non-const mgp::Value return type for C++ API [master < T1099] Add non-const mgp::Value return type for C++ API Jul 24, 2023
@mpintaric55334
Copy link
Contributor Author

@antoniofilipovic can you help me phrase the description better. @vpavicic I will write the documentation when I get the green light and know how from Antonio.

Copy link
Collaborator

@antoniofilipovic antoniofilipovic left a comment

Choose a reason for hiding this comment

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

Looks good to go

@antoniofilipovic antoniofilipovic added Ship it PR ready to be merged and removed Ready for review PR is ready for review labels Jul 25, 2023
@antoniofilipovic
Copy link
Collaborator

@mpintaric55334 @vpavicic for release note: Extend mgp::Value to return subtypes which are modifieable (non-const)

@antoniofilipovic antoniofilipovic merged commit 2b7707a into master Jul 28, 2023
6 checks passed
@antoniofilipovic antoniofilipovic deleted the add-non-cast-value-return-type branch July 28, 2023 10:26
@vpavicic
Copy link
Contributor

@mpintaric55334 C++ API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ship it PR ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants