Skip to content

Show commit SHA1 in preferences - #2408

Merged
davigonz merged 1 commit into
owncloud:masterfrom
hannesa2:PreferencesCommitSHA1
Jan 15, 2019
Merged

davigonz merged 1 commit into
owncloud:masterfrom
hannesa2:PreferencesCommitSHA1

Conversation

@hannesa2

@hannesa2 hannesa2 commented Dec 28, 2018 •

Copy link
Copy Markdown
Contributor

Let a click jump to Github commit

I split #2391
Now you can see commit sha1 and a click opens the last changes

owncloudcommit 2

@michaelstingl

Copy link
Copy Markdown
Contributor

Make "click jump to Github commit" a theming option, so it can be disabled in some cases?

@hannesa2

Copy link
Copy Markdown
Contributor Author

"theming option" I have only a clue what you mean.
But I would never disable/hide it, because it increase transparency what we install on our device

@michaelstingl

Copy link
Copy Markdown
Contributor

There are various parameters you can set in owncloudApp/src/main/res/values/setup.xml. This way you can build your own flavor of the app with some features enabled or disabled. I can imagine use cases, where the link to a repo on github.com isn't helpful.

@hannesa2

Copy link
Copy Markdown
Contributor Author

I would like to increase transparency by automatic upload to GooglePlay Alpha on tagging with https://github.com/Triple-T/gradle-play-publisher and show a menu entry to point to Travis build like this PR to last commit.

sample: eg https://github.com/hannesa2/BitcoinCash-Wallet/commit/b0aa1eeec7b4c409d0162d30155695b41bee36f3

@hannesa2

Copy link
Copy Markdown
Contributor Author

In my point of view it's never not-helpful.
Imagine, when you are forced to investigate on a long run behavior, eg #2394 after days you forget which version I use, release or debug ? which commit ? With this PR you see immediate what's the last relevant commit, not only an anonymous SHA1

@davigonz

davigonz commented Jan 2, 2019

Copy link
Copy Markdown
Contributor

In my point of view it's never not-helpful.
Imagine, when you are forced to investigate on a long run behavior, eg #2394 after days you forget which version I use, release or debug ? which commit ? With this PR you see immediate what's the last relevant commit, not only an anonymous SHA1

I agree with you @hannesa2 about showing the last relevant commit but about opening the link when you tap it, do you think that is interesting for an end user which most likely doesn't know what Github or a commit or even coding is? In my humble opinion, I would make the link optional, as @michaelstingl suggests.

I would like to increase transparency by automatic upload to GooglePlay Alpha on tagging with https://github.com/Triple-T/gradle-play-publisher and show a menu entry to point to Travis build like this PR to last commit.

@hannesa2 What is this about? Something to discuss in another issue maybe?

@davigonz davigonz added this to the 2.10.0 milestone Jan 2, 2019
@davigonz

davigonz commented Jan 2, 2019

Copy link
Copy Markdown
Contributor

Code approved, ready to test @jesmrec

@jesmrec

jesmrec commented Jan 8, 2019

Copy link
Copy Markdown
Member

In my point of view it's never not-helpful.

it is not a matter of helpfulness. The app is not only distributed via GitHub or only oriented to community. There are customers who brand the app to show only their stuff. In such case, there is no place for a link to a code repository. The SHA commit will point you to the installed version in any case.

@jesmrec

jesmrec commented Jan 9, 2019

Copy link
Copy Markdown
Member

Checks performed:

  • Debug version -> correct commit hash and build type
  • Release version -> correct commit hash and build type

will create a separate issue to handle the click option that forwards to the GH commit.

Approved

@hannesa2

hannesa2 commented Jan 9, 2019 •

Copy link
Copy Markdown
Contributor Author

Or introduce a multiple-click-add-more-menu-items behavior like on all Android devices for developer menu.

@hannesa2
hannesa2 force-pushed the PreferencesCommitSHA1 branch 2 times, most recently from c8e6267 to bbb6551 Compare January 11, 2019 07:07
@davigonz

Copy link
Copy Markdown
Contributor

@hannesa2 please rebase with master and we can merge

And let a click jump to Github commit
@hannesa2
hannesa2 force-pushed the PreferencesCommitSHA1 branch from bbb6551 to f4cf892 Compare January 15, 2019 08:06
@davigonz
davigonz merged commit cd83307 into owncloud:master Jan 15, 2019
@davigonz

Copy link
Copy Markdown
Contributor

Thanks @hannesa2 for this contribution, pretty useful!

@hannesa2
hannesa2 deleted the PreferencesCommitSHA1 branch January 15, 2019 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants