demos-for-functions
demos-for-functions copied to clipboard
Feat implement generate gdpr export python
PR for the implementation in Python of the gdpr export function (issue: https://github.com/appwrite/appwrite/issues/1904 )
-
What does it do? This function finds all documents in all collections where the ID of the user who executed the function is mentioned and generates a CSV file that is saved to Appwrite Storage with user id and timestamp as the file name.
-
How has it been tested? Tested using the docker image provided and following the steps indicated in the documentation.
-
Mandatory GIF

@PineappleIOnic
First of all, I've created some collections with documents in the localhost, as it can be seen in the images:

Next, after installing the requirements in the requirement.txt file, this command has been executed:

And finally the following file is obtained:

@und1n3 Thanks for sharing your explanation with us. But we need you to execute this function using the Appwrite console and share those screenshots with us 🙂
@christyjacob4 I hope this is what you requested:
On the Appwrite Console, create a new Python function and name it (for example, in this case gdpr_export)
Deploy a new tag following the instructions in the ReadMe file

Set the Settings in the following manner changing the variables to match your own status:

Now you can execute the function.
@und1n3 This isn't what I meant. Please press the "Execute Now" button and share the logs from the Logs tab
We'd like to see a successful execution with the console output to verify that your code is actually working
@christyjacob4 I hope now this is what you asked for.

(Now I change the code adding a print in order to see the log)