这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@bricesanchez
Copy link
Member

@bricesanchez bricesanchez commented Aug 22, 2018

This fixes #3389

@bricesanchez bricesanchez changed the title Feature/3389/search resource dialogs WIP Feature/3389/search resource dialogs Aug 22, 2018
@bricesanchez bricesanchez added this to the 5.0 milestone Aug 22, 2018

@resource_area_selected = from_dialog?

render @callback.presence || 'insert'
Copy link
Member Author

@bricesanchez bricesanchez Aug 23, 2018

Choose a reason for hiding this comment

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

Hi @parndt ! I don't find how i could render the template by context insert or in /refinery/admin/pages_dialogs/link_to template.

Using @callback is not the good way, could you help me to find?

Copy link
Member

Choose a reason for hiding this comment

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

oops you accidentally mentioned the @callback user 😉

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops! i will not expect a callback from this user 😆

Copy link
Member Author

Choose a reason for hiding this comment

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

Any idea @parndt ?

@web_address_text = "http://"
@web_address_text = params[:current_link] if params[:current_link].to_s =~ /^http:\/\//
@web_address_text = "https://"
@web_address_text = params[:current_link] if params[:current_link].to_s =~ /^https:\/\//
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't the s be optional? Like /^https?:\/\//

Copy link
Member Author

Choose a reason for hiding this comment

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

right

@parndt parndt closed this Aug 31, 2018
@parndt parndt reopened this Aug 31, 2018
@parndt
Copy link
Member

parndt commented Aug 31, 2018

reopened to activate code climate

@bricesanchez bricesanchez self-assigned this Sep 4, 2018
@bricesanchez bricesanchez force-pushed the feature/3389/search-resource-dialogs branch from 020b254 to 10a6eee Compare September 4, 2018 02:26
@bricesanchez
Copy link
Member Author

Hi @parndt, could you review my PR? Also, i think the PR config of codeclimate is too strict, could we just warning us?

@parndt
Copy link
Member

parndt commented Sep 4, 2018

The code looks fine. I think the code climate failures provide good points 😉

@bricesanchez
Copy link
Member Author

bricesanchez commented Sep 4, 2018

I dont't really know if we still need these lines :

if params[:conditions].present?
extra_condition = params[:conditions].split(',')
extra_condition[1] = true if extra_condition[1] == "true"
extra_condition[1] = false if extra_condition[1] == "false"
extra_condition[1] = nil if extra_condition[1] == "nil"
end

I don't really know if it still works since strong_paramaters

There is no spec for this lines : https://github.com/refinery/refinerycms/search?q=condition&unscoped_q=condition

@bricesanchez bricesanchez changed the title WIP Feature/3389/search resource dialogs Feature/3389/search resource dialogs Sep 4, 2018
@bricesanchez
Copy link
Member Author

So @parndt will you acceptthis PR as it? :)

@parndt
Copy link
Member

parndt commented Sep 7, 2018

Yeah. I think that the other things can be done as separate refactors. I was looking at it the other night, but it was quite intense.

@bricesanchez bricesanchez merged commit 0dec51a into master Sep 7, 2018
@bricesanchez bricesanchez deleted the feature/3389/search-resource-dialogs branch September 7, 2018 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable file search in resource_picker

3 participants