mentorship-android icon indicating copy to clipboard operation
mentorship-android copied to clipboard

refactor: replace hardcoded strings

Open bosankus opened this issue 3 years ago • 22 comments

Description

Replaced hardcoded strings with the strings in string.xml. Those from test classes, constants are left unchanged.

Fixes #757

Type of Change:

  • Code
  • Quality Assurance

Code/Quality Assurance Only

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • Code was analyzed using option "Run inspection by name" with both the options: Hardcoded texts & Hardcoded strings.

Checklist:

  • [x] My PR follows the style guidelines of this project
  • [x] I have performed a self-review of my own code or materials
  • [x] Any dependent changes have been merged

Code/Quality Assurance Only

  • [x] My changes generate no new warnings
  • [x] New and existing unit tests pass locally with my changes

bosankus avatar Oct 13 '21 08:10 bosankus

pushed fixed commit, except the spotless check on the activity. I did not made any changes there.

bosankus avatar Oct 13 '21 12:10 bosankus

@isabelcosta please approve the workflow run.

epicadk avatar Oct 13 '21 19:10 epicadk

pushed fixed commit, except the spotless check on the activity. I did not made any changes there.

Are you sure you've pushed it? I can only see the two commits from earlier.

epicadk avatar Oct 14 '21 05:10 epicadk

Yes I have checked, the push got rejected. Working on it.

bosankus avatar Oct 15 '21 04:10 bosankus

@epicadk Pushed a commit. Can you check and suggest?

bosankus avatar Oct 15 '21 11:10 bosankus

@epicadk Can you check once?

bosankus avatar Oct 16 '21 04:10 bosankus

@isabelcosta can this be merged?

bosankus avatar Oct 17 '21 04:10 bosankus

@vj-codes @devkapilbansal

bosankus avatar Oct 17 '21 04:10 bosankus

@epicadk Can you check once?

Waiting for isabel to approve workflow. However I still see some wildcard imports so the spotless check could fail.

epicadk avatar Oct 17 '21 05:10 epicadk

@bosankus could you please address the merge conflicts? It should be a straightforward resolution. It's because of a recent merge that involved changing package names.

isabelcosta avatar Oct 17 '21 13:10 isabelcosta

@epicadk @isabelcosta Can you check the latest commit kindly ?

bosankus avatar Oct 20 '21 12:10 bosankus

Also the spotless check is failing please run spotless using ./gradlew spotlessApply

epicadk avatar Oct 20 '21 16:10 epicadk

@epicadk @isabelcosta All checks are passed in the recent commit I pushed. Can it be merged?

bosankus avatar Oct 22 '21 15:10 bosankus

@isabelcosta Can you kindly give review?

bosankus avatar Oct 23 '21 04:10 bosankus

@isabelcosta quotes removed and changes done. Waiting for your approval.

bosankus avatar Oct 23 '21 19:10 bosankus

It would be amazing if anyone could test this PR - by testing, I mean downloading the apk for this PR and making sure there are no weird behaviors coming out of this. Testing out areas where these strings that were refactored affect it.

isabelcosta avatar Oct 26 '21 09:10 isabelcosta

@isabelcosta I can do the testing the way you said. Can you provide the testing credentials to enter the app? Or do I need to register?

bosankus avatar Oct 26 '21 10:10 bosankus

Also can I move to other issues? @isabelcosta @isabelcosta

bosankus avatar Oct 26 '21 10:10 bosankus

@bosankus you can move to other issues. Usually, we prefer someone other than the author of the issue to do the testing.

For whoever tests this, the credentials are shared on zulip here: https://anitab-org.zulipchat.com/#narrow/stream/223071-newcomers/topic/Questions/near/258734796

isabelcosta avatar Oct 26 '21 11:10 isabelcosta

@bosankus you can move to other issues. Usually, we prefer someone other than the author of the issue to do the testing.

For whoever tests this, the credentials are shared on zulip here: https://anitab-org.zulipchat.com/#narrow/stream/223071-newcomers/topic/Questions/near/258734796

Thanks.. Copy that.

bosankus avatar Oct 26 '21 11:10 bosankus

@devkapilbansal & @vj-codes Can you kindly approve?

bosankus avatar Oct 28 '21 05:10 bosankus

@bosankus I'll test it soon and add my review 🚀

vj-codes avatar Oct 28 '21 12:10 vj-codes