-
Notifications
You must be signed in to change notification settings - Fork 3
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
Refactor: wording #21
Comments
Hello Jose,
Thank You for the good Write-Up.
Firstly, the job complete Emoji might be better to have the ☑️ Checkmark, it is more visually distinct from the casual shirt.
Secondly,
#JOB_POSITION and #PENDING_JOBS
When creating a new job, it will always have the highest job number in that particular queue.
So I think that we only need the two variables:
#JOB_NUMBER and #JOB_ACTIVE
Then visually:
Created Job 30.
Starting/Finishing Job 15 (of 30).
:)
Cam.
Von meinem iPhone gesendet
… Am 8/2/2022 um 15:36 schrieb Jose Celano ***@***.***>:
In the original repo, we started a discussion about wording:
Commit message subject
Code: message names
Commit subject
New job:
📝🈺: {QUEUE_NAME}: job.{JOB_NUMBER}
📝🈺: update_artwork: job.24
Start job:
📝👔: {QUEUE_NAME}: job.{#JOB_POSITION}/{#PENDING_JOBS}: job.ref.{JOB_CREATION_COMMIT_HASH}
📝👔: update_artwork: job.15/30: job.ref.1e31b549c630f806961a291b4e3d4a1471f37490
Finish job
📝👕: {QUEUE_NAME}: job.{#JOB_POSITION}/{PENDING_JOBS}: job.ref.{JOB_CREATION_COMMIT_HASH}
📝👕: update_artwork: job.15/30: job.ref.1e31b549c630f806961a291b4e3d4a1471f37490
Variables:
JOB_NUMBER is a job (not message) auto-incremental ID.
QUEUE_NAME is the name of the queue. Special characters or white spaces are replaced by -. Max. length 30 after formatting.
JOB_CREATION_COMMIT_HASH is the has of the commit where the job was created.
#PENDING_JOBS is the number of not finished jobs in the queue.
#JOB_POSITION in the not finished jobs.
Examples:
Job 24 was created:
📝🈺: update_artwork: job.24
The job created in the commit 1e31b54 (24) has started and it's currently the 15th job in the 30 not finished jobs.
📝👔: update_artwork: job.15/30: job.ref.1e31b549c630f806961a291b4e3d4a1471f37490
The previous jobs has finished:
📝👕: update_artwork: job.15/30: job.ref.1e31b549c630f806961a291b4e3d4a1471f37490
Notes:
#JOB_POSITION and #PENDING_JOBS (job.15/30 in the example) are always the same for the same job because the commits are merged at the same time.
Message names
In the source code we have two types of messages:
CreateJobMessage
MarkJobAsDoneMessage
We have to rename them to:
NewJobMessage
JobFinishedMessage
We will add the new message JobStartedMessage in a different issue.
please @da2ce7 could you review this issue? especially the #PENDING_JOBS and #JOB_POSITION variables. I do not know if I got them right.
cc @yeraydavidrodriguez
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.
|
hi @da2ce7 OK, them the examples would look like this:
being 15 the # of the job Regarding the emoji for the check, you have used ☑ but I think ✅ fits better with the other icons style. There are three checks icons:
|
I suggest using any of the "boxed" checks. Are more consistent with the other emojis, and also is safer for both light and dark themes. |
This is how I was seeing the icons while writting the comment:
☑
|
Using emojis: New job -> "📝🈺: " Job finihsed -> "📝✅: "
The commit subject for the JobFinihsedMessage now contains the a referecne (commit) to the commit were the job was created. 📝🈺: queue-name: job.ref.f1a69d48a01cc130a64aeac5eaf762e4ba685de7
The commits with an standard subject without the queue refix must be be discarded.
@josecelano @yeraydavidrodriguez I would like to reopen this issue. The current implementation looks like this: Here is a mock-up of what that could be more clear:
What do you think? |
EDIT: by the way, I do not like it too much the delimiter we are using (":"). It seems we are using emojis for all except for that. Specially the first one after the job message key. |
|
In other to implement this change I think it makes sense to totally remove the queue commit prefix. The first symbol in the commit subject is the message key. So we do not have any character to identify all commits. We only check if the first character is a valid message key. export class NewJobMessage extends Message {
constructor(payload: string) {
super(payload, nullCommitHash())
}
getKey(): MessageKey {
return new MessageKey('🈺')
}
}
export class JobFinishedMessage extends Message {
getKey(): MessageKey {
return new MessageKey('⬇️✅')
}
}
export class JobStartedMessage extends Message {
getKey(): MessageKey {
return new MessageKey('⬆👔')
}
} We also have to change the method to identify a commit subject. |
After thinking a lot about this issue, and having read all the discussion and the arguments I would propose another alternative. Although at first I thought that removing the prefix would be a good idea, now I think otherwise. I think we should have a two-emojis prefix. The reason is that the fixed first character would be extremely useful to grep the gitlog or do a manual search. And for the second emoji, I like the ideas of the arrows. They are very expressive, cross-cultural and all fonts paint them coherently. It also works as a closure of the job. I only have some concerns about the new job emoji (the Kanji). Although we all agree that would highlight the new job commit in a very prominent way, and we all think Kanjis are beautiful, I also think we are sacrificing expressivity and legibility. Few users would know the reason behind this choice. I would use, from the same emojis section of the arrows, the asterisk symbol, that resembles the star associated with mnay "new" action buttons. I would propose, then, this prefix scheme:
What do you think, @josecelano @da2ce7 @cgbosse ? |
Maybe we could:
Regarding the Kanji I agree that the asterisc could be more explicit, but probably the "+" is the most used.
|
@da2ce7 any suggestions? I think there are 2 pending questions: 1- Should we use a fix prefix or totally remove it? We need to move on with this issue, I think my latest proposal has a little bit of all proposals and it's symmetric (something developers usually like) :-). If we do not agree on a solution I would say we can go with Cameron's latest proposal since he was the ideator because I do not see any major inconvenience in any of them. It's more a UX issue. |
hi @da2ce7 should we implement this change? I would say we can close the issue and leave it as it's it because that's going to change a lot in version 2.0. |
@josecelano I agree and have chosen to close this issue. The next version is going to look very different, so this thread isn't so relevant anymore. :( |
In the original repo, we started a discussion about wording:
Commit subject
New job:
Start job:
Finish job
Variables:
JOB_NUMBER
is a job (not message) auto-incremental ID.QUEUE_NAME
is the name of the queue. Special characters or white spaces are replaced by-
. Max. length 30 after formatting.JOB_CREATION_COMMIT_HASH
is the has of the commit where the job was created.#PENDING_JOBS
is the number of not finished jobs in the queue.#JOB_POSITION
in the not finished jobs.Examples:
Job 24 was created:
The job created in the commit
1e31b549c630f806961a291b4e3d4a1471f37490
(24
) has started and it's currently the 15th job in the 30 not finished jobs.The previous jobs has finished:
Notes:
#JOB_POSITION
and#PENDING_JOBS
(job.15/30
in the example) are always the same for the same job because the commits are merged at the same time.Message names
In the source code we have two types of messages:
CreateJobMessage
MarkJobAsDoneMessage
We have to rename them to:
NewJobMessage
JobFinishedMessage
We will add the new message
JobStartedMessage
in a different issue.please @da2ce7 could you review this issue? especially the
#PENDING_JOBS
and#JOB_POSITION
variables. I do not know if I got them right.cc @yeraydavidrodriguez
The text was updated successfully, but these errors were encountered: