GithubHelp home page GithubHelp logo

Comments (9)

jessp01 avatar jessp01 commented on June 1, 2024

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.

ElGabbu avatar ElGabbu commented on June 1, 2024

Could you point me toward the logs files and I should be investigating?

from server.

hilak avatar hilak commented on June 1, 2024

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.

jessp01 avatar jessp01 commented on June 1, 2024

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.

ElGabbu avatar ElGabbu commented on June 1, 2024

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.

ElGabbu avatar ElGabbu commented on June 1, 2024

Hi Jessp01

I am I correct in saying that the sphinx_log DB only hold inset/update/delete operations? No selects right?

from server.

hilak avatar hilak commented on June 1, 2024

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.

KalturaCommunity-zz avatar KalturaCommunity-zz commented on June 1, 2024

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.

ElGabbu avatar ElGabbu commented on June 1, 2024

Commenting line 36 seems to do the trick :) ... thank you very much for your help both of you

from server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.