Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Add push version #311

Merged
merged 1 commit into from
Feb 27, 2021
Merged

Add push version #311

merged 1 commit into from
Feb 27, 2021

Conversation

arv
Copy link
Contributor

@arv arv commented Feb 26, 2021

Towards #290

@arv arv requested a review from phritz February 26, 2021 23:44
@arv
Copy link
Contributor Author

arv commented Feb 26, 2021

Doesn't really do much 🤷

@@ -255,6 +257,7 @@ pub struct PullRequest {
pub cookie: String,
#[serde(rename = "lastMutationID")]
pub last_mutation_id: u64,
#[serde(rename = "pullVersion")]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For consistency but we should rename all of them to snake_case. I added an entry to the task list.

https://www.w3.org/TR/design-principles/#casing-rules

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this really followed? Seems icky at least for js consumers because then the resulting js objects conflict with js style.

I personally prefer it as is but if you can show me that everyone else is using snake case I’ll go along.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Strong preference for narrow gully hungarian notation, which would make this version integer VIpULLvERSION

@arv
Copy link
Contributor Author

arv commented Feb 27, 2021

TBR

@arv arv merged commit 73f15fb into rocicorp:main Feb 27, 2021
@arv arv deleted the push-version branch February 27, 2021 18:05
@aboodman
Copy link
Contributor

aboodman commented Feb 27, 2021 via email

@aboodman
Copy link
Contributor

aboodman commented Feb 27, 2021 via email

@arv
Copy link
Contributor Author

arv commented Mar 1, 2021

As long as it is consistent I do not care too much either. I was just trying to match some kind of industry convention but it seems like there really isn't enough of one.

Using camelCase is nicer in some way because we do not need eslint comments everywhere.

I'm just going to stick with what we have.

Copy link
Contributor

@phritz phritz left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -16,6 +16,8 @@ use std::collections::hash_map::HashMap;
use std::default::Default;
use std::fmt::Debug;

const PULL_VERSION: u32 = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you put this next to the PullRequest definition, and maybe move the comment describing version 0 to it?

@@ -255,6 +257,7 @@ pub struct PullRequest {
pub cookie: String,
#[serde(rename = "lastMutationID")]
pub last_mutation_id: u64,
#[serde(rename = "pullVersion")]
Copy link
Contributor

Choose a reason for hiding this comment

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

Strong preference for narrow gully hungarian notation, which would make this version integer VIpULLvERSION

arv added a commit to arv/repc that referenced this pull request Mar 2, 2021
arv added a commit that referenced this pull request Mar 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants