-
-
Notifications
You must be signed in to change notification settings - Fork 495
[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
[FEAT] Custom Links in Dropdown Menu #5718
Conversation
app/models/learning_hour.rb
Outdated
@@ -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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
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".
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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__}" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
app/models/custom_link.rb
Outdated
class CustomLink < ApplicationRecord | ||
belongs_to :casa_org | ||
end |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
@nepaakash how are you coming along here? :) do you need any help? |
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 |
I am excited for this to get merged, feel free to ask me any questions |
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? |
closing |
What github issue is this PR for, if any?
Resolves #5704