Re: [foreman-dev] Re: Revert removal of @host.params for host_param

2017-05-11 Thread Daniel Lobato
Right now 1.15 is released. I decided not to document the deprecation as 
the consensus seems to 
maintain both ways of addressing this. 
The deprecations are still going to show up in the logs, so I suggest 
someone submits a PR to remove 
the deprecations and cherry-pick it for 1.15.1

2017年4月20日木曜日 10時19分19秒 UTC+9 Andrew Schofield:
>
> At the very least support both. This is a point release and this is a 
> pretty major change for a non-major release.
>
> As per the comment from Ewoud the bulk of people who will use this use it 
> in ERB and templates. The templates being probably the easiest to 'fix'. 
> Personally, keeping this permanently and proxying to me seems like the 
> right thing to do. This functionality has existed for years and is very 
> heavily documented all over the place. 
>
> On Wednesday, April 19, 2017 at 12:39:40 PM UTC-4, Greg Sutcliffe wrote:
>>
>> On Wed, 2017-04-19 at 14:10 +0300, Tomer Brisker wrote: 
>> > Since it seems there wasn't an agreement on reverting this made in 
>> > time for 1.15, I'd say we should support both for now and reconsider 
>> > in the future pending a rewrite of the template engine using a proxy 
>> > object as we discussed. 
>>
>> +1, supporting both seems like the way forward. 
>>
>> Greg 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-dev] Re: Revert removal of @host.params for host_param

2017-04-19 Thread Andrew Schofield
At the very least support both. This is a point release and this is a 
pretty major change for a non-major release.

As per the comment from Ewoud the bulk of people who will use this use it 
in ERB and templates. The templates being probably the easiest to 'fix'. 
Personally, keeping this permanently and proxying to me seems like the 
right thing to do. This functionality has existed for years and is very 
heavily documented all over the place. 

On Wednesday, April 19, 2017 at 12:39:40 PM UTC-4, Greg Sutcliffe wrote:
>
> On Wed, 2017-04-19 at 14:10 +0300, Tomer Brisker wrote: 
> > Since it seems there wasn't an agreement on reverting this made in 
> > time for 1.15, I'd say we should support both for now and reconsider 
> > in the future pending a rewrite of the template engine using a proxy 
> > object as we discussed. 
>
> +1, supporting both seems like the way forward. 
>
> Greg 
>

-- 
You received this message because you are subscribed to the Google Groups 
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-dev] Re: Revert removal of @host.params for host_param

2017-04-19 Thread Greg Sutcliffe
On Wed, 2017-04-19 at 14:10 +0300, Tomer Brisker wrote:
> Since it seems there wasn't an agreement on reverting this made in
> time for 1.15, I'd say we should support both for now and reconsider
> in the future pending a rewrite of the template engine using a proxy
> object as we discussed.

+1, supporting both seems like the way forward.

Greg

-- 
You received this message because you are subscribed to the Google Groups 
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-dev] Re: Revert removal of @host.params for host_param

2017-04-19 Thread Tomer Brisker
Since it seems there wasn't an agreement on reverting this made in time for
1.15, I'd say we should support both for now and reconsider in the future
pending a rewrite of the template engine using a proxy object as we
discussed.

On Tue, Apr 18, 2017 at 10:15 AM, Marek Hulán  wrote:

> On pondělí 17. dubna 2017 11:22:07 CEST Daniel Lobato wrote:
> > Sorry to relive the topic but
> > https://github.com/theforeman/foreman/pull/4219 didn't get in,
> > and it's time to update the documentation for 1.15 including
> deprecations.
> >
> > Since reverting the change is probably something not to be done during
> RC,
> > I wonder what to do.
> > The options are:
> >
> > 1. Keep the code as-is - which forces people to change their templates
> for
> > 1.17 for little benefit imo
> > 2. Support both options - this would just require to remove the
> > deprecations for the next RC which is not a problem
> > 3. Support both options and reconsider to remove the helpers?
> >
> > Let me know what you think, I lean towards 2 or 3 as I explained in here
> > previously.
>
> 1. or 2., if we release 1.15 with those macros, I think 3. is not an
> option.
>
> --
> Marek
>
> >
> > 2017年1月11日水曜日 17時05分42秒 UTC+1 Daniel Lobato:
> > > Hi foreman devs,
> > >
> > > Just noticed today https://github.com/theforeman/
> foreman/pull/3983/files
> > > after some comments on IRC. What's the background behind this change?
> > >
> > > As far as I can see, this merely moves
> > >
> > > @host.param to host_param
> > > @host.param_true? to host_param_true?
> > > @host.param_false? to host_param_false?
> > > @host.info to host_enc
> > >
> > > without gaining anything from the change. This will force people to
> > > change their templates (including our community templates) when the
> > > deprecation is removed, and there's nothing to gain.
> > >
> > > Does someone know what's the rationale behind this change? As it stands
> > > right now, I propose reverting that commit entirely to avoid inflicting
> > > that pain on users - which include many devs who maintain templates.
> > >
> > > Best,
> > >
> > >
> > > @dLobatog
> > > blog.daniellobato.me
> > > daniellobato.me
> > >
> > > GPG: http://keys.gnupg.net/pks/lookup?op=get=0x7A92D6DD38D6DE30
> > > Keybase: https://keybase.io/elobato
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "foreman-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to foreman-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Have a nice day,
Tomer Brisker
Red Hat Engineering

-- 
You received this message because you are subscribed to the Google Groups 
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [foreman-dev] Re: Revert removal of @host.params for host_param

2017-04-18 Thread Marek Hulán
On pondělí 17. dubna 2017 11:22:07 CEST Daniel Lobato wrote:
> Sorry to relive the topic but
> https://github.com/theforeman/foreman/pull/4219 didn't get in,
> and it's time to update the documentation for 1.15 including deprecations.
> 
> Since reverting the change is probably something not to be done during RC,
> I wonder what to do.
> The options are:
> 
> 1. Keep the code as-is - which forces people to change their templates for
> 1.17 for little benefit imo
> 2. Support both options - this would just require to remove the
> deprecations for the next RC which is not a problem
> 3. Support both options and reconsider to remove the helpers?
> 
> Let me know what you think, I lean towards 2 or 3 as I explained in here
> previously.

1. or 2., if we release 1.15 with those macros, I think 3. is not an option.

--
Marek

> 
> 2017年1月11日水曜日 17時05分42秒 UTC+1 Daniel Lobato:
> > Hi foreman devs,
> > 
> > Just noticed today https://github.com/theforeman/foreman/pull/3983/files
> > after some comments on IRC. What's the background behind this change?
> > 
> > As far as I can see, this merely moves
> > 
> > @host.param to host_param
> > @host.param_true? to host_param_true?
> > @host.param_false? to host_param_false?
> > @host.info to host_enc
> > 
> > without gaining anything from the change. This will force people to
> > change their templates (including our community templates) when the
> > deprecation is removed, and there's nothing to gain.
> > 
> > Does someone know what's the rationale behind this change? As it stands
> > right now, I propose reverting that commit entirely to avoid inflicting
> > that pain on users - which include many devs who maintain templates.
> > 
> > Best,
> > 
> > 
> > @dLobatog
> > blog.daniellobato.me
> > daniellobato.me
> > 
> > GPG: http://keys.gnupg.net/pks/lookup?op=get=0x7A92D6DD38D6DE30
> > Keybase: https://keybase.io/elobato


-- 
You received this message because you are subscribed to the Google Groups 
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[foreman-dev] Re: Revert removal of @host.params for host_param

2017-04-17 Thread Daniel Lobato
Sorry to relive the topic but 
https://github.com/theforeman/foreman/pull/4219 didn't get in, 
and it's time to update the documentation for 1.15 including deprecations. 

Since reverting the change is probably something not to be done during RC, 
I wonder what to do. 
The options are:

1. Keep the code as-is - which forces people to change their templates for 
1.17 for little benefit imo
2. Support both options - this would just require to remove the 
deprecations for the next RC which is not a problem
3. Support both options and reconsider to remove the helpers?

Let me know what you think, I lean towards 2 or 3 as I explained in here 
previously.

2017年1月11日水曜日 17時05分42秒 UTC+1 Daniel Lobato:
>
> Hi foreman devs, 
>
> Just noticed today https://github.com/theforeman/foreman/pull/3983/files 
> after some comments on IRC. What's the background behind this change? 
>
> As far as I can see, this merely moves 
>
> @host.param to host_param 
> @host.param_true? to host_param_true? 
> @host.param_false? to host_param_false? 
> @host.info to host_enc 
>
> without gaining anything from the change. This will force people to 
> change their templates (including our community templates) when the 
> deprecation is removed, and there's nothing to gain. 
>
> Does someone know what's the rationale behind this change? As it stands 
> right now, I propose reverting that commit entirely to avoid inflicting 
> that pain on users - which include many devs who maintain templates. 
>
> Best, 
>
> -- 
> Daniel Lobato Garcia 
>
> @dLobatog 
> blog.daniellobato.me 
> daniellobato.me 
>
> GPG: http://keys.gnupg.net/pks/lookup?op=get=0x7A92D6DD38D6DE30 
> Keybase: https://keybase.io/elobato 
>

-- 
You received this message because you are subscribed to the Google Groups 
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.