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

Added species to default pet tasks and handled related code #798

Closed
wants to merge 87 commits into from

Conversation

atbalaji
Copy link
Contributor

@atbalaji atbalaji commented Jun 2, 2024

🔗 Issue

#709

✍️ Description

  • Added species related filtering to default pet tasks

📷 Screenshots/Demos

Screenshot 2024-06-02 164554
Screenshot 2024-06-02 164609

Copy link
Collaborator

@jmilljr24 jmilljr24 left a comment

Choose a reason for hiding this comment

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

@atbalaji Thanks for working on this!! Just a couple of things. Let me know your thoughts/concerns.

app/models/default_pet_task.rb Outdated Show resolved Hide resolved
@jmilljr24
Copy link
Collaborator

@atbalaji just checking in. Not sure if you saw the feedback from @kasugaijin .

@kasugaijin
Copy link
Collaborator

@atbalaji how's this going?

@atbalaji
Copy link
Contributor Author

atbalaji commented Jul 5, 2024

Hi ,addressed the comments. Had some conflicts after pulling. Will work on those and tests and push within tmr

@kasugaijin
Copy link
Collaborator

Sounds good @atbalaji

@atbalaji
Copy link
Contributor Author

atbalaji commented Jul 8, 2024

Current update: Updated failed tests. But facing issue with a page which worked before addressing comments correctly. New error. Investigating it

@atbalaji
Copy link
Contributor Author

I have updated the issue reason as reply to the earlier comments. Pls check it out.

@jmilljr24
Copy link
Collaborator

jmilljr24 commented Jul 12, 2024

I have updated the issue reason as reply to the earlier comments. Pls check it out.

@atbalaji Can you push up your changes so I can take a look on my local machine?
See comment above

wandergithub and others added 19 commits July 17, 2024 21:22
* sets dev and test env I18n error config to raise translation missing

* Fixes all missed translation errors:
- Adds missing translations to corresponding en.yml
- Fixes wrong look ups of translations
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
* Add Adopters link for adopters index

* Define adopters in breadcrumbs config

* Create route for adopters index

* Create adopters controller with index action

* Create adopters index view

* Standard rb fix

* Add translations for both adopters and fosterers views
* rubyforgood#753 WIP: Add fosters tab in pet show

* rubyforgood#753 Lessen DB query for matches and fosters

* rubyforgood#753 WIP: Make fosters responsive

Clean up unused files

* rubyforgood#753 Redirect to requesting page after foster delete

* rubyforgood#753 Add translations to pet show fosters tab

* rubyforgood#753 Code housekeeping

* Fosters table alignment

---------

Co-authored-by: Meghan Gutshall <meghan.gutshall@gmail.com>
* * Add Adopters link for adopters index

* Define adopters in breadcrumbs config

* Create route for adopters index

* Create adopters controller with index action

* Create adopters index view

* Standard rb fix

* Add translations for both adopters and fosterers views

* rubyforgood#753 WIP: Add fosters tab in pet show

* rubyforgood#753 Lessen DB query for matches and fosters

* rubyforgood#753 WIP: Make fosters responsive

Clean up unused files

* rubyforgood#753 Redirect to requesting page after foster delete

* rubyforgood#753 Add translations to pet show fosters tab

* rubyforgood#753 Code housekeeping

* Fosters table alignment

---------

Co-authored-by: Meghan Gutshall <meghan.gutshall@gmail.com>

* Update counter working

Clean up

---------

Co-authored-by: Jade Stewart <114014697+jadekstewart3@users.noreply.github.com>
Co-authored-by: Meghan Gutshall <meghan.gutshall@gmail.com>
* sets dev and test env I18n error config to raise translation missing

* Fixes all missed translation errors:
- Adds missing translations to corresponding en.yml
- Fixes wrong look ups of translations

* adds lookup localization to organizations/, organizations/adopter_fosterer

* Add lookup localization to organizations/staff and add missing translations

* solves missing translations views errors
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Ken Maeshima <81536479+mononoken@users.noreply.github.com>
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Ken Maeshima <81536479+mononoken@users.noreply.github.com>
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Ken Maeshima <81536479+mononoken@users.noreply.github.com>
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Ken Maeshima <81536479+mononoken@users.noreply.github.com>
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Ken Maeshima <81536479+mononoken@users.noreply.github.com>
* Fix tests arguments order

* fix final tests

* fix final tests

---------

Co-authored-by: Cairo Calleros <cairocalleros@Cairos-MBP.lan>
Bumps [faker](https://github.com/faker-ruby/faker) from 3.3.1 to 3.4.1.
- [Release notes](https://github.com/faker-ruby/faker/releases)
- [Changelog](https://github.com/faker-ruby/faker/blob/main/CHANGELOG.md)
- [Commits](faker-ruby/faker@v3.3.1...v3.4.1)

---
updated-dependencies:
- dependency-name: faker
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ken Maeshima <81536479+mononoken@users.noreply.github.com>
Bumps [phonelib](https://github.com/daddyz/phonelib) from 0.8.8 to 0.8.9.
- [Release notes](https://github.com/daddyz/phonelib/releases)
- [Changelog](https://github.com/daddyz/phonelib/blob/master/CHANGELOG.md)
- [Commits](daddyz/phonelib@v0.8.8...v0.8.9)

---
updated-dependencies:
- dependency-name: phonelib
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ken Maeshima <81536479+mononoken@users.noreply.github.com>
Bumps [rails](https://github.com/rails/rails) from 7.1.3.3 to 7.1.3.4.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](rails/rails@v7.1.3.3...v7.1.3.4)

---
updated-dependencies:
- dependency-name: rails
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ken Maeshima <81536479+mononoken@users.noreply.github.com>
Bumps [pagy](https://github.com/ddnexus/pagy) from 8.2.0 to 8.4.4.
- [Release notes](https://github.com/ddnexus/pagy/releases)
- [Changelog](https://github.com/ddnexus/pagy/blob/master/CHANGELOG.md)
- [Commits](ddnexus/pagy@8.2.0...8.4.4)

---
updated-dependencies:
- dependency-name: pagy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ken Maeshima <81536479+mononoken@users.noreply.github.com>
mononoken and others added 24 commits July 17, 2024 21:23
* replace all occurances of page text with custom page

* fix unintended changes to migration files

* change missed instances of PageText

* change view folder name to custom pages

* nested module/classes for custom pages controller

* updated files that got missed for custom page change

* ran linter
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Justin <16829344+jmilljr24@users.noreply.github.com>
…ion (rubyforgood#864)

* Added module custom_form for Form and Question Controller and Views

* Fix test cases for custom_form module for Form and Question

* Nested modules

* Modularize Form model and its related test cases

* Modularize Question Module with CustomForm

* Lint Fix

* Fix seed file

* Modulaize Question policy code and fix link in question form
* create: form submission model with test

* add: foreign key for the has many relationship between form submission and submitted answer models

* create: foreign key for has many relationship between form submission and adopter applications

- create form_submission factory
- add associations context block in adopter_application test

* update: all instances of adopter_application requiring  form_submission validation

* update: adopter_application factory bot association to account for form_submission model

* update: alta/baja adopter_application seed block to have a form_submission to belong to

* change: belongs_to to acts_as_tenant for organization scope

* update: schema preview for adopter application

* update: seeds files to account for form_submission model

* add: has_one association for form_submission

* update form_submission test

* chore: clean up

* migrate database

* remove: all page_text occurrences

this was changed to custom_page

* add: FormSubmission documentation

These comments give context to what the FormSubmission class does

* run: rails standard:fix
@kasugaijin
Copy link
Collaborator

@atbalaji FYI you might want to rebase and force push to get rid of all of the past commit history. This makes reviewing really hard!

@jmilljr24
Copy link
Collaborator

@atbalaji should be good to go for adding tests as well. Thanks for the changes!!

@atbalaji
Copy link
Contributor Author

Sorry for the trouble @kasugaijin and @jmilljr24 . During rebase some mishap happened due to a single commit unexpectedly which caused this. Also I have risen a new PR with a different branch name using merging for the clarity of reviewing. I am traveling for next 3 days. So i won't be available for next 3 days. I have updated failed tests. Regarding addition of new tests, pls assign it to someone in case you need it earlier. Sorry for the inconvenience.

@kasugaijin
Copy link
Collaborator

@atbalaji thank you…no sweat…it happens! No rush to get this across the line either. Don’t want you to feel pressured to get stuff in.

@jmilljr24
Copy link
Collaborator

Opened in new PR #879

@jmilljr24 jmilljr24 closed this Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default Pet Tasks: tasks should be assigned to a general category, or a species