Repository navigation
CLCdesq API - #2754
CLCdesq API#2754objecttothis wants to merge 56 commits into
Conversation
| */ | ||
| public static function has_listeners($event) | ||
| { | ||
| if (isset(self::$_listeners[$event]) AND count(self::$_listeners[$event]) > 0) |
There was a problem hiding this comment.
you can just return this statement, no if needed
There was a problem hiding this comment.
I've corrected this in this branch and in the event_generator branch.
43aee89 to
a8b3d4e
Compare
8ac94e4 to
c28a87f
Compare
2de895d to
5933bb5
Compare
|
What is CLCdesq api anyway? |
It's a third-party integration. It has the event_generator for third-party integrations as a dependency. In short, it sends JSON RESTful API calls to a proprietary web platform so that we can sync inventory with the website. Several people have been asking for integrations similar to it for publicly available CMSs. Those, like this will need to integration through whatever the final product of our event_generator ends up being. |
|
Thanks. I tried googling it and did not see much about it. |
- Corrected bug in Items->data_error_check preventing dates from being checked properly. - Fixed attribute save to properly account for decimal and date updates.
- Changed some columns from tinyint to tinyint(1) - Removed from querybuilder calls to optimize speed.
- Cleaned up code - Optimized out 1 query call per attribute per row in import file.
- Fixed a bug causing attribute conversion to fail. - Code cleanup and optimization in the convert_definition_data method. - Reverted method chaining in query builder methods for readability. - Resorted Attribute model to original method order for clarity in code review.
- Added NEW_ITEM constant - Renamed variables for clarity - Tab indentation of equals signs for easy of reading - Removed unnecessary comments - Removed unecessary variable. - Renamed CSV headings to for consistency with other headings - Remove method chaining for clarity. - Replaced array() and new Array() with [] for speed (+20%) and to match current standard. - Removed trailing whitespace and whitespace on empty lines
- Resorted order to take advantage of query indexes in the database.
- In the event that an item was being updated and the new attribute_value didn't exist, the old attribute_link was not being deleted which caused two attribute_link rows to exist with the same item_id and definition_id.
- There was a bug in the code that caused attribute_link rows to be duplicated with the same information on item_import with an update. This migration removes the duplicate rows.
beb6dd2 to
36ae3b7
Compare
Added event_update trigger in Receivings
36ae3b7 to
24d57eb
Compare
|
@objecttothis It seems this branch has some changes that are already in the import branch? Do you want me to have a look and sync it with latest master? Maybe it's better to wait until we merge your import changes. |
Correct. The order that we need to review and merge the branches is:
This branch will change depending on how we implement the 3rd party integrations event generator, so no need to review it until that's sorted out. |
This will need to be completely reworked and implemented after CI4 Event triggers have been implemented.