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

Media contributor guide: add Gold drawing #122

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

josecelano
Copy link
Member

Documentation: Media Contributor Guide.
How to handle the library (images) from a final user point of view, or at least someone who is only focused on the contents.

@josecelano josecelano added the documentation Improvements or additions to documentation label Nov 17, 2021
@josecelano josecelano linked an issue Nov 17, 2021 that may be closed by this pull request
@josecelano
Copy link
Member Author

I've added only the process to add a new Gold image: https://github.com/Nautilus-Cyberneering/chinese-ideographs/blob/issue-121-media-contributor-guide/documentation/Media%20Contributor%20Guide.md
I'm going to continue working on the "update" section.

In this tutorial, you will learn how to add a new Gold Drawing image to the library.

You can watch the whole screen capture of this tutorial on [YouTube](https://youtu.be/Nf-ePEdA5xc).

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe I would include a two lines description of what a Gold Image is ("A HQ Image generated from the raw acquired, with no further processing but cropping, aligning and some small resizing")

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, in fact, we should add that descripción here and link this tutorial with that section.


We are using `dvc` to store the image. That means the actual image will be stored on the `dvc` storage and we will only add two files into the git repo.

First, we use the `dvc` client to add the new image. We have already added the image in the rigth folder. The `dcv` command is:
Copy link
Member

Choose a reason for hiding this comment

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

Here the second time you mention dvc you have misspelled it.

At this point we have the image locally in our branch. We need to apply our changes remotelly:

- Push our new git commit.
- Copy the image to the remote `dcv` storage.
Copy link
Member

Choose a reason for hiding this comment

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

Same misspelling of dvc.


### 6. Validate and merge the pull requests

If there were not any error, a maintainer can merge the pull request. This role should be a media maintainer in charge of the image collection.
Copy link
Member

Choose a reason for hiding this comment

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

"If there were not any error" -- The verb tense seems off.
I would you use the active voice: is


### 7. New version of the website deployed

If there were no errors in the previous stepts you should see the new Gold drawing on the website: https://nautilus-cyberneering.github.io/chinese-ideographs-website.
Copy link
Member

Choose a reason for hiding this comment

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

Same as the previous.
Active voice.


## How to update a Gold Drawing

In this tutorial, you will learn how to update a new Gold Drawing image to the library.
Copy link
Member

Choose a reason for hiding this comment

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

Whe you say update it will lead to a modification.
To update and new are slightly contradictive.
If it is new it means to add.
If there is already a version it should be without new and simply update.


In this tutorial, you will learn how to update a new Gold Drawing image to the library.

NOTE: The intention is to update an image. If you want to add the artist revision or edition, that's a different artwork, so you should add a new image. The "update" case should only be used when you want to fix the wrong image (invalid, file, corrupted file, wrong content, etcetera).
Copy link
Member

Choose a reason for hiding this comment

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

"If you want to add the artist revision or edition" --- ... artist's ...
"that's a different artwork," -- ... which is a different artwork
"when you want to fix the wrong image (invalid, file,.." --- when you want to fix a faulty image....

Copy link
Member

@cgbosse cgbosse left a comment

Choose a reason for hiding this comment

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

Hi @josecelano ,
I reviewed the English and I found some things to improve.
Please have a look at them.

Thank you very much.


If there were no errors in the previous stepts you should see the new Gold drawing on the website: https://nautilus-cyberneering.github.io/chinese-ideographs-website.

The website contains another workflow which is triggered by the [update-website workflow](../.github/workflows/update-website.yml). That workflow obtains the image from the `dvc` storage and convert it to `JPG` format. It also copies the image inside the git repo (it's not using git LFS). You can get more information about that process on the [website repository](https://nautilus-cyberneering.github.io/chinese-ideographs-website/).
Copy link
Contributor

Choose a reason for hiding this comment

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

Thin link to the "website repository", links directly to the website instead.

@@ -0,0 +1,178 @@
# Media Contributor Guide

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add an index for the document. With a brief overview of the steps.

@josecelano
Copy link
Member Author

hi @da2ce7 regarding updating the Gold Drawing and continuing with our previous discussion, how should we proceed? As you mentioned we only want to add and delete images and the modification should be an delete & add operation, but there are some steps in the process:

  1. ISSUE: Create the issue
  2. BRANCH: Create the branch
  3. COMMIT: Commit changes into the new branch
  4. PR: Create PR
  5. MERGE: Merge PR

The example cases for an update are:

  • Wrong image uploaded (with the right filename)
  • Image was corrupted
  • Any other example that implies the new version is not a new art version or edition (that should be a new artwork).

The final branch changes are going to be two commits:

  1. One commit deleting the image (dvc pointer and .gitignore file)
  2. Another commit adding the right image (new dvc pointer & .gitignore file)

Instead of a single commit changing the content of the dvc pointer.

But my question is, should we apply that approach only to the COMMIT (3) step in the list of tasks above? I mean do we have to apply this approach only to the changes in the git repo or do we have to change also the whole process? I would keep the other steps, for example:

  1. ISSUE: Update Gold Drawing: 000000-32.600.2.tif
  2. BRANCH: issue-xx-update-gold-drawing-000000-32.600.2.tif
  3. COMMIT: [#XX] Update Gold Drawing: 000000-32.600.2.tif
  4. PR: Create PR
  5. MERGE: Merge PR

From the media contributor point of view, the process is an update and internally we implement a delete and add action.
You can explain on the issue what was wrong. The alternative is to force the user to follow also the delete & add process, like this:

Delete:

  1. ISSUE: Delete Gold Drawing: 000000-32.600.2.tif
  2. BRANCH: issue-xx-delete-gold-drawing-000000-32.600.2.tif
  3. COMMIT: [#XX] Delete Gold Drawing: 000000-32.600.2.tif
  4. PR: Create PR
  5. MERGE: Merge PR

Add:

  1. ISSUE: Add Gold Drawing: 000000-32.600.2.tif
  2. BRANCH: issue-xx-add-gold-drawing-000000-32.600.2.tif
  3. COMMIT: [#XX] Add Gold Drawing: 000000-32.600.2.tif
  4. PR: Create PR
  5. MERGE: Merge PR

Definitely having only two operations from the code point of view it's going to be much simpler, and it seems to better try to keep the same process at all levels but I'm not sure if that could be too complicated for the media contributor. Although it should not be a frequent task.

By the way, I've just realized we could copy&paste the issue description into the (long) commit message if we want to have the reason inside git.

cc @cgbosse , @yeraydavidrodriguez

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add documentation for media contributors
4 participants