Comments (9)
Might be a discrepancy between the operational [MySQL DB] and Sphinx.
Best way to debug this is to check the log and find the queries made to
both Sphinx and DB and then run them manually to see what comes back.
May the source be with you,
Jess Portnoy
Watch the video recordings from Kaltura Connect 2014, and pre-register for 2015 - http://connect.kaltura.com/
On Wed, 5 Nov 2014, ElGabbu wrote:
I am using the API to list any deleted categories of a partner using the following code:
$deleteCategoriesFilter = new KalturaCategoryFilter();
$deleteCategoriesFilter->statusIn = KalturaCategoryStatus::DELETED . "," . KalturaCategoryStatus::PURGED;
$deletedCategories = $sourcePartnerClient->category->listAction($deleteCategoriesFilter, null);I can see in the database in the categories table there are records with status 4 (purged) ... why aren't these records retrieved
by the API?Thanks
—
Reply to this email directly or view it on GitHub.[AFBqvQX1mzBQJjFScqzJZ7YfogwAXNBHks5nKhcngaJpZM4C3RIJ.gif]
from server.
Could you point me toward the logs files and I should be investigating?
from server.
You will not be able to extract deleted or purged categories using API calls at all. The reason is that we implement a core-level (Propel) filter which automatically screens out categories with those statuses. The only way to retrieve deleted items is through a Propel-level script which runs against the DB and Sphinx directly without going through the API entry points.
from server.
In light of Hila's answer, the investigation of logs is no longer needed
but just for future reference:
The MySQL queries should be in /opt/kaltura/log/kaltura_api_v3.log but
worth checking
kaltura_prod.log as well.
For Sphinx, there is the /opt/kaltura/log/kaltura_populate.log file and
also, the data is saved in the MySQL kaltura_sphinx_log DB, the
table is sphinx_log
May the source be with you,
Jess Portnoy
Watch the video recordings from Kaltura Connect 2014, and pre-register for 2015 - http://connect.kaltura.com/
On Wed, 5 Nov 2014, hilak wrote:
You will not be able to extract deleted or purged categories using API calls at all. The reason is that we implement a core-level
(Propel) filter which automatically screens out categories with those statuses. The only way to retrieve deleted items is through
a Propel-level script which runs against the DB and Sphinx directly without going through the API entry points.—
Reply to this email directly or view it on GitHub.[AFBqvRLwAMZ87AFQ80mLMdGJsuM77GDSks5nKiULgaJpZM4C3RIJ.gif]
from server.
Hi Hilak thank you for your confirmation I indeed was suspecting that there was some sort of hardcoding somewhere. I don't agree with the implementation tho ... the filter in place also screws up get action if one is searching for a deleted categories with the specific ID you get a Category not found exception. Any chance you could point me in the direction where I could find this hard coded filter please?
from server.
Hi Jessp01
I am I correct in saying that the sphinx_log DB only hold inset/update/delete operations? No selects right?
from server.
The implementation is in place in order to maintain order, specifically in the GUI applications, so there would not bean over-abundance of filter logic in them.
If you are interested in cancelling the implementation in your own CE installation, you may (to the best of my knowledge) look at the categoryPeer.class.php lines 35-38
from server.
Hi ElGabbu,
The selects you can see in the populate log.
Thanks,
May the source be with you,
Jess Portnoy
Watch the video recordings from Kaltura Connect 2014, and pre-register for 2015 - http://connect.kaltura.com/
On Wed, 5 Nov 2014, ElGabbu wrote:
Hi Jessp01
I am I correct in saying that the sphinx_log DB only hold inset/update/delete operations? No selects right?
—
Reply to this email directly or view it on GitHub.[ACH7XkHb4O9bWoL3ZcUbHUZuKHsvEQm8ks5nKigJgaJpZM4C3RIJ.gif]
from server.
Commenting line 36 seems to do the trick :) ... thank you very much for your help both of you
from server.
Related Issues (20)
- [Manual Live Stream] PHP Fatal error: Call to undefined method LiveStreamEntry::hasMediaServer()
- Base entry class should not be aware of the Reach Plugin
- OpenCalais engine - code issues HOT 3
- Missing constant HOT 1
- Ubuntu focal repository 404 Not Found
- Incorrect PHP open tag in galleryPartialSuccess.php HOT 1
- Duplicated error enum
- Error while using Thumbnail Api HOT 3
- deleteOldContent.php - deletes playlist configuration HOT 1
- Kaltura supports the redirect upload url? HOT 1
- KMC > Share & Embed wrong url HOT 1
- A bug with analytics? HOT 1
- Issue Create Itunes Syndication with all categories, the xml is broken
- XML Binding Issue HOT 1
- [KMC] Redirection Loop after upgrade HOT 2
- Security Contact Request HOT 2
- Child entries showing up in KMC Search HOT 2
- When I add users using API (user.add), the users are not showing up in KMS user management. But when I use user.get api I am able to find the user. Help! HOT 1
- Usage of "falvor" instead of "flavor" in 1 visible place and multiple other files in code HOT 2
- Video can't play after configuring the AWS Cloudfront HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server.