Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Conversation

@Ingvord
Copy link
Member

@Ingvord Ingvord commented Oct 24, 2016

Progress: remove NotifdEventConsumer

@Ingvord Ingvord force-pushed the refactoring-RemoveNotifd branch from 4a16bc8 to 8497f57 Compare October 24, 2016 16:14
@Ingvord Ingvord requested a review from bourtemb December 15, 2016 18:41
@Ingvord Ingvord assigned Ingvord and unassigned bourtemb Jul 28, 2017
@Ingvord Ingvord force-pushed the refactoring-RemoveNotifd branch from 347bb1c to e4b2b60 Compare July 28, 2017 13:02
Copy link
Member

@bourtemb bourtemb left a comment

Choose a reason for hiding this comment

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

Sorry for reviewing only now this big PR.
Some conflicts need to be solved now.
I think it was a good idea to extract the EventConsumer stuff into new files.
I personally do not like the introduction of a new file extension (.cxx and .txx instead of .cpp and .tpp extension which is used on the other files).
Of course, this helps in seeing quickly what new files have been created in Tango 10 but I would rather go to something consistent among the project. And to simplify the maintenance (mainly when you need to look at the history of the files), I would rather keep the current .cpp and .tpp file extension.

else
client_release = 3;
}

Copy link
Member

Choose a reason for hiding this comment

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

I think this EventSubscriptionChange command is obsolete and is really notifd specific.
It could be kept for backwards compatibility, but should probably throw an exception.

Copy link
Member

Choose a reason for hiding this comment

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

It looks like we could throw an exception when ct==NOTIFD in Dserver::event_subscription method too at the following line:
https://github.com/tango-controls/cppTango/pull/295/files#diff-08b411adab5ed25ab9d8495f4dd6d8e7L220
And some additional cleanup could be done on this method. (removing attribute.set_use_notifd_event())

NotifdEventConsumer *notifd_event_consumer,
map<string,EventCallBackStruct>::iterator &epos,
map<string,EventChannelStruct>::iterator &ipos,
string &domain_name)
Copy link
Member

Choose a reason for hiding this comment

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

It looks like lines 1327 and 1328 could be removed too.

@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Jul 28, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@tango-controls tango-controls deleted a comment Aug 9, 2017
@Ingvord Ingvord merged commit 7b866fe into tango-controls:master Aug 11, 2017
@andygotz
Copy link
Collaborator

Well done on getting this big PR merged!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants