Skip to content

[FEAT] Custom Links in Dropdown Menu #5718

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

Closed

Conversation

nepaakash
Copy link
Contributor

@nepaakash nepaakash commented May 13, 2024

What github issue is this PR for, if any?

Resolves #5704

@nepaakash nepaakash marked this pull request as draft May 13, 2024 16:01
@github-actions github-actions bot added the ruby Pull requests that update Ruby code label May 13, 2024
@@ -52,7 +52,6 @@ def user_org_learning_topic_enable?
# id :bigint not null, primary key
# duration_hours :integer not null
# duration_minutes :integer not null
# learning_type :integer default(5)
Copy link
Collaborator

Choose a reason for hiding this comment

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

interesting diff - at some point we need to figure out why this keeps appearing and disappearing

Copy link
Collaborator

Choose a reason for hiding this comment

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

Agreed. This thing drives me nuts in my code. Also I feel like I messed it up. @elasticspoon any ideas?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should be removed. It looks like :learning_type was adding in

t.integer :learning_type, default: 5, not_null: true
but then removed in
class RemoveLearningType < ActiveRecord::Migration[7.0]

It probably should have been removed but somehow got left in?

I suspect what is going on is it exists in the schema because someone forgot to commit the removal. Most people do a schema:load to they have it. But when people run migrations it attempts to remove the column. And every time the removal is attempted we think "thats weird, we should leave the column".

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would leave it in for now simply because I think the removal might mess up the seeding.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@nepaakash revert this change for now

require 'rails_helper'

RSpec.describe CustomLink, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

please add tests before merging

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes sure... It is still a work in progress

Comment on lines 1 to 3
class CustomLink < ApplicationRecord
belongs_to :casa_org
end
Copy link
Collaborator

@schoork schoork May 23, 2024

Choose a reason for hiding this comment

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

Should add some validation on the url and the text

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This task is still in progress... Will definitely add those

db/schema.rb Outdated
@@ -420,7 +429,6 @@

create_table "learning_hours", force: :cascade do |t|
t.bigint "user_id", null: false
t.integer "learning_type", default: 5
Copy link
Collaborator

Choose a reason for hiding this comment

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

revert this change for now

@bcastillo32
Copy link
Collaborator

@nepaakash how are you coming along here? :) do you need any help?

@bcastillo32
Copy link
Collaborator

bcastillo32 commented Jan 26, 2025

hi @nepaakash - I hope you are well. CASA stakeholders asked about this yesterday. Anything else needed on this ticket to get it completed?

@nepaakash
Copy link
Contributor Author

hi @nepaakash - I hope you are well. CASA stakeholders asked about this yesterday. Anything else needed on this ticket to get it completed?

Hey @bcastillo32 , RSpecs is remaining in this

@compwron
Copy link
Collaborator

I am excited for this to get merged, feel free to ask me any questions

@bcastillo32
Copy link
Collaborator

hi @nepaakash - I hope you are well. CASA stakeholders asked about this yesterday. Anything else needed on this ticket to get it completed?

Hey @bcastillo32 , RSpecs is remaining in this

hi @nepaakash - how are you coming along - our stakeholders are keen on using this feature :)

@nepaakash
Copy link
Contributor Author

hi @nepaakash - I hope you are well. CASA stakeholders asked about this yesterday. Anything else needed on this ticket to get it completed?

Hey @bcastillo32 , RSpecs is remaining in this

hi @nepaakash - how are you coming along - our stakeholders are keen on using this feature :)

Will complete the task by the end of this week

@bcastillo32
Copy link
Collaborator

hi @nepaakash - I hope you are well. CASA stakeholders asked about this yesterday. Anything else needed on this ticket to get it completed?

Hey @bcastillo32 , RSpecs is remaining in this

hi @nepaakash - how are you coming along - our stakeholders are keen on using this feature :)

Will complete the task by the end of this week

Hi @nepaakash any progress on this. Our casa stakeholders are inquiring :)

@nepaakash nepaakash marked this pull request as ready for review March 24, 2025 11:46
@nepaakash nepaakash changed the title WIP: [FEAT] Custom Links in Dropdown Menu [FEAT] Custom Links in Dropdown Menu Mar 24, 2025
@nepaakash
Copy link
Contributor Author

hi @nepaakash - I hope you are well. CASA stakeholders asked about this yesterday. Anything else needed on this ticket to get it completed?

Hey @bcastillo32 , RSpecs is remaining in this

hi @nepaakash - how are you coming along - our stakeholders are keen on using this feature :)

Will complete the task by the end of this week

Hi @nepaakash any progress on this. Our casa stakeholders are inquiring :)

Hello @bcastillo32 everything is done here but the rspec is failing. I checked and it is failing in the main branch too. Cam you look into it?

@bcastillo32
Copy link
Collaborator

closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
erb ruby Pull requests that update Ruby code Tests! 🎉💖👏
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Customizable items in Left NavBar
6 participants