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

Operations review #3

Merged
merged 3 commits into from
Aug 3, 2020
Merged

Operations review #3

merged 3 commits into from
Aug 3, 2020

Conversation

meyer1994
Copy link
Contributor

No description provided.

@meyer1994 meyer1994 self-assigned this Jul 31, 2020
They are:

- `page`, an integer specifying the page being fetched
- `size`, an integer specifying the size of the page
Copy link
Contributor

Choose a reason for hiding this comment

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

Add something about sorting the results. Or maybe say that we return a spring Page[1]

[1] https://docs.spring.io/spring-data/rest/docs/2.0.0.M1/reference/html/paging-chapter.html

Copy link
Contributor

Choose a reason for hiding this comment

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

If it is working

Here we list all the available endpoints from this microservice. For easily testing this microservice, we recomend to see our [postman collection](https://github.com/Leaf-Agriculture/postman-collections).

Here we list all the available endpoints from this microservice. For easily
testing it, we recomend to see our Postman [collection][1].

Choose a reason for hiding this comment

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

Did you mean to drop the link to the postman collection?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No no. This is just a way to reference the link by a number. The links are located in the end of the file.

check the status of the return object for modifications.

A merge process has some limitations however. The files passed must belong to
the same user, be of the same operation type and have the status as `CONVERTED`.

Choose a reason for hiding this comment

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

The status of files is not explained in the relevant section, but the user needs to know what it means for a file to have the 'CONVERTED' status. I think we should either add a similar explanation to the section on POST /files to explain how the file will progress through the statuses and what they mean. Or, we could simply explain right here that a file becomes converted if ___ is true and after ___ is complete.

We also should state how often the auto-merge is expected to take place. Knowing it's async, the user might still expect it to be available after just minutes. Lastly, we enumerate the status values in the POST /files section, but here we should specifically state that a merge file is ready for the user when the status is _____.

There are some minor wording suggestions I have as well. So here's a copy with some changes. Also note the type on 'request':

A merge operation is performed asynchronously each night. This call will return immediately with the newly created file entry, but at this point the file is not already processed and available. You will need to make new GET /files request for the new id and check the status. A status value of ____ means the file is done merging.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking that these kind of "guides" should be placed in another section. This section is just the reference for the API. But I agree that there are lots of concepts that we use, and reference in here, that should be explained.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've have updated the section. However, I have not added further explanations in the guide. Maybe create another section? I am open to discuss it.

@meyer1994 meyer1994 merged commit 516ee6a into master Aug 3, 2020
@meyer1994 meyer1994 deleted the operationsReview branch August 3, 2020 17:22
fabyan-alexander pushed a commit that referenced this pull request Jun 9, 2021
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.

4 participants