Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Add AddCreatedAt Ruby function #299

Closed
wants to merge 1 commit into from
Closed

Add AddCreatedAt Ruby function #299

wants to merge 1 commit into from

Conversation

rafaeelaudibert
Copy link

When a document in any collection is created, this function will fill the createdAt attribute with the current time, if this rule for createdAt is configured on a specific collection.

Copy link
Member

@christyjacob4 christyjacob4 left a comment

Choose a reason for hiding this comment

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

@rafaeelaudibert please add screenshots of a successful execution from the Appwrite console along with the logs

Copy link
Member

@christyjacob4 christyjacob4 left a comment

Choose a reason for hiding this comment

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

Please add screenshots of the logs from a successful execution using the Appwrite console and address the remaining comments.


```
.
├── Gemfile
Copy link
Member

Choose a reason for hiding this comment

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

You're missing the .appwrite folder in the structure

- Create a tarfile

```bash
$ tar -zcvf ../add-created-at.tar.gz .
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
$ tar -zcvf ../add-created-at.tar.gz .
$ cd ..
$ tar -zcvf ../add-created-at.tar.gz add-created-at

- **APPWRITE_ENDPOINT** - Your Appwrite Project Endpoint (can be found at `settings` tab on your Appwrite console)
- **APPWRITE_API_KEY** - Your Appwrite Project API Keys (can be found at `API Keys` tab on your Appwrite console)
- **APPWRITE_FUNCTION_PROJECT_ID** - Your Appwrite Project ID (can be found at `settings` tab on your Appwrite console)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- **APPWRITE_FUNCTION_PROJECT_ID** - Your Appwrite Project ID (can be found at `settings` tab on your Appwrite console)

You can remove this env variable. This is automatically passed to the cloud function

@christyjacob4
Copy link
Member

@rafaeelaudibert closing this PR for now. Feel free to reopen it / create a new one when you're ready to start working on it once again

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants