-
Notifications
You must be signed in to change notification settings - Fork 41
QE3 - added OFeed platform support #997
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
Conversation
without compression, with fake filename that must be present
working upload (regular and after edit db event), readout event have to be tested todo: download data from OF
add a new competitor (onfly is start time is inserted) fix error eith running time that wasn't converted to seconds from miliseconds iof status fix for time initial value -1 that caused OK status that was wrong for a new or updated competitor
fvacek
left a comment
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 fix indentation and read also QE coding style https://github.com/Quick-Box/quickevent/wiki/Code-style
quickevent/app/quickevent/plugins/Event/src/services/ofeed/ofeedclient.cpp
Outdated
Show resolved
Hide resolved
quickevent/app/quickevent/plugins/Event/src/services/ofeed/ofeedclient.cpp
Outdated
Show resolved
Hide resolved
| // qf::core::utils::ConfigCLIOptions | ||
| // cliOptions()->eventName() | ||
| qf::core::sql::Query q_schema; | ||
| q_schema.exec("select current_schema", qf::core::Exception::Throw); |
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 is too cumbersome way to find out if competitor was edited or inserted, we should better add this flag to DB_EVENT payload data
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 also will not work with SQLite
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.
agree, a new db event will solve it in much better way, but adding a new db event was too big task for me to be honest.
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'll add one
| running_time = running_time_variant.toInt(); | ||
| } | ||
|
|
||
| // Status |
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.
There is a RunStatus utility class in libquickevent for this already
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.
RunStatus is not operating with Inactive status which is important as initial state for the platform
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.
What Inactive exactly means?
innactive == RunStatus WHERE all fields are false
in my understanding
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.
From IOF.xsd, link
<xsd:enumeration value="Inactive">
<xsd:annotation>
<xsd:documentation>
Has not yet started.
</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>so it makes sense that all fields are false
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.
Then RunStatus can be used, we can introduce RunStatus::isInactive()
|
moved to #1009 |
The service features:
TODO: