Skip to content
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 nids in tag model #5215

Closed
4 tasks
cesswairimu opened this issue Mar 21, 2019 · 12 comments · Fixed by susanreenesaa/plots2#1
Closed
4 tasks

Refactor nids in tag model #5215

cesswairimu opened this issue Mar 21, 2019 · 12 comments · Fixed by susanreenesaa/plots2#1
Labels
claimed first-timers-only They need to be well-formatted using the First-timers_Issue_Template. outreachy

Comments

@cesswairimu
Copy link
Collaborator

cesswairimu commented Mar 21, 2019

🤔 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 cesswairimu added the first-timers-only They need to be well-formatted using the First-timers_Issue_Template. label Mar 21, 2019
@cesswairimu
Copy link
Collaborator Author

@techchic here you go

@techchic
Copy link

Great! Thanks

@edwd42
Copy link
Contributor

edwd42 commented Mar 21, 2019

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 😅

@techchic
Copy link

Hey @edwd42 I am currently working on this.

@cesswairimu
Copy link
Collaborator Author

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. 😄 Thanks

@edwd42
Copy link
Contributor

edwd42 commented Mar 21, 2019

oh hey sorry techchic. didn't see that.

@Michaellin250
Copy link

Is this issue still open?

@grvsachdeva
Copy link
Member

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

@grvsachdeva
Copy link
Member

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

@susanreenesaa
Copy link
Contributor

I am taking up this issue

susanreenesaa added a commit to susanreenesaa/plots2 that referenced this issue Oct 10, 2019
susanreenesaa added a commit to susanreenesaa/plots2 that referenced this issue Oct 13, 2019
@SidharthBansal
Copy link
Member

Is this issue solved?

@jywarren
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
claimed first-timers-only They need to be well-formatted using the First-timers_Issue_Template. outreachy
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants