Code Monkey home page Code Monkey logo

Comments (18)

dorner avatar dorner commented on June 5, 2024 1

All righty - good luck!

from human-essentials.

dorner avatar dorner commented on June 5, 2024 1

Go for it!

from human-essentials.

zeeshan-haidar avatar zeeshan-haidar commented on June 5, 2024

I can work on this

from human-essentials.

dorner avatar dorner commented on June 5, 2024

Hey @zeeshan-haidar - did you want this one or #3707 ?

from human-essentials.

zeeshan-haidar avatar zeeshan-haidar commented on June 5, 2024

@dorner I actually want both, I have already started working on #3707, I just don't wanna sit idle once I finish that #3707

from human-essentials.

github-actions avatar github-actions commented on June 5, 2024

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.

from human-essentials.

zeeshan-haidar avatar zeeshan-haidar commented on June 5, 2024

This issue is in progress, already created PR

from human-essentials.

dorner avatar dorner commented on June 5, 2024

guh not sure why the bot is marking it as stale when the PR had changes 😦

from human-essentials.

github-actions avatar github-actions commented on June 5, 2024

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.

from human-essentials.

github-actions avatar github-actions commented on June 5, 2024

Automatically unassigned after 7 days of inactivity.

from human-essentials.

thebkbuffalo avatar thebkbuffalo commented on June 5, 2024

I can pick this ticket up.

from human-essentials.

thebkbuffalo avatar thebkbuffalo commented on June 5, 2024

@dorner quick question! I'm new to this app and not sure what is the correct page to be displayed. Can you add some info on that? Thank you!

from human-essentials.

dorner avatar dorner commented on June 5, 2024

@thebkbuffalo I'd take a look at the original (now apparently abandoned) PR as a place to start looking: #3759

from human-essentials.

thebkbuffalo avatar thebkbuffalo commented on June 5, 2024

@dorner - question for you. I'm working out how data is associated, and have sorted out whats breaking here, but not sure the right way to fix it. These new Partners getting created don't have an associated Organization via roles (they only have Partner roles, not org roles) which is what's breaking links created on the _lte_sidebar.html.erb page. However, I'm not entirely sure these newly created Partners should have an associated Organization or not. Any light you can shed on these roles and what should be associated or not would be helpful. Thank you!

from human-essentials.

dorner avatar dorner commented on June 5, 2024

Partners all are associated with an organization (it's a 1-to-many, not many-to-many relationship). Partners themselves don't have roles, only partner users. So it would be partner user -> partner (via role) -> organization.

from human-essentials.

thebkbuffalo avatar thebkbuffalo commented on June 5, 2024

Sorry I mistyped in my last comment. I understand the association between Partners and Organizations. The question I was trying to get to was more about the association between Users and Organizations. The users created during the new partner creation process don't have any associated roles that correspond to organizations. So when the user clicks the Review Organization link, what's breaking is calling current_user.organization in the _lte_sidebar shared view because the User doesn't have any associated Organization via Roles, or more specifically Organization_Role.

So my real question is, should that association from User to Organization via Roles exist for these new Users whose only role is as a Partner? If so, then during the Partner creation process that Role needs to be created as well for the User. If not, may have to modify how we get that Organization data in the sidebar view.

Thank you again for the help!

from human-essentials.

thebkbuffalo avatar thebkbuffalo commented on June 5, 2024

created a PR fixing this bug.
#3965

from human-essentials.

thebkbuffalo avatar thebkbuffalo commented on June 5, 2024

Created a new PR with correct fix.

#3974

from human-essentials.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.