plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Refactor nids in tag model

Open cesswairimu opened this issue 7 years ago • 12 comments

🤔 What you will need to know.

Nothing. This issue is meant to welcome you to Open Source :) We are happy to walk you through the process.

📋 Step by Step

  • [ ] 🙋 Claim this issue: Comment below. If someone else has claimed it, ask if they've opened a pull request already and if they're stuck -- maybe you can help them solve a problem or move it along!

Problem:

I extracted tids and nids to methods in the tag model https://github.com/publiclab/plots2/blob/master/app/models/tag.rb#L437-L443

📝 Update:

We want to remove wherever else they are defined in the model so that they can use the new methods.

Changes

  1. Delete this lines https://github.com/publiclab/plots2/blob/master/app/models/tag.rb#L210-L213

After changing run the tests and make sure we didn't break anything

  • [ ] 💾 Commit your changes

  • [ ] 🔀 Start a Pull Request. There are two ways how you can start a pull request:

  1. If you are familiar with the terminal or would like to learn it, here is a great tutorial on how to send a pull request using the terminal.

  2. You can also edit files directly in your browser and open a pull request from there.

  • [ ] 🏁 Done Ask in comments for a review :)

🤔❓ Questions?

Leave a comment below!

cesswairimu avatar Mar 21 '19 11:03 cesswairimu

@techchic here you go

cesswairimu avatar Mar 21 '19 11:03 cesswairimu

Great! Thanks

techchic avatar Mar 21 '19 11:03 techchic

Hi cesswairimu. I am new to open source and public lab. I'm going to attempt this issue. Looks easy, but not sure what will happen when I click commit. Also, not sure where or how to run the tests. Guess I'll find out soon enough :sweat_smile:

edwd42 avatar Mar 21 '19 18:03 edwd42

Hey @edwd42 I am currently working on this.

techchic avatar Mar 21 '19 18:03 techchic

Hi @edwd42 will add your name for to a list of people looking for ftos pretty soon you should get an issue. and don't worry we are here to help. :smile: Thanks

cesswairimu avatar Mar 21 '19 18:03 cesswairimu

oh hey sorry techchic. didn't see that.

edwd42 avatar Mar 21 '19 19:03 edwd42

Is this issue still open?

Michaellin250 avatar Mar 27 '19 03:03 Michaellin250

@techchic are you working on this one. If yes, can you please tag this issue in your PR. Thanks!

grvsachdeva avatar Mar 27 '19 20:03 grvsachdeva

hey @Michaellin250, we can add your name to the https://github.com/publiclab/plots2/issues/4963 if you like? Or, you can go through issues https://github.com/publiclab/plots2/issues/ and claim the one you find interesting. Thanks!

grvsachdeva avatar Mar 27 '19 20:03 grvsachdeva

I am taking up this issue

susanreenesaa avatar Oct 10 '19 13:10 susanreenesaa

Is this issue solved?

SidharthBansal avatar Nov 22 '19 19:11 SidharthBansal

Yes, this is complete -- thank you!!!

jywarren avatar Sep 29 '20 15:09 jywarren