Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 06/30/2021 in all areas

  1. Hi @alexisp, at the moment there's no direct call from the api to get the review session url, but can be "easily" generated with the following snippet: import ftrack_api session = ftrack_api.Session() # Retrieve the Review Session you are interested in rs = session.query('ReviewSession').first() # Ensure the shareable link is enable rs['shareable_url_enabled'] = true session.commit() # Get the signed url from the server signed_data = session.call([{'action':'generate_signed_url', 'entity_key':[rs['id']], 'entity_type':'ReviewSession'}]) # Compose the review url shareable_url = '{}/review/{}?signature={}'.format(session.server_url, rs['id'], signed_data[0]['signed_url']) print(shareable_url) hope it helps. L.
    2 points
  2. This is exactly what I needed ! I could not have come up with this by myself 🤓 ! Thx @Lorenzo Angeli !
    1 point
  3. Hi Liam, Expand/collapse all only works when the data is already fetched from the server. If there are more than 500 items in the result and no filter is applied, only the top-most items are fetched. We suggest that you filter down the result or look at part of the project at the time using the project outliner. You can also force the spreadsheet to load all data by applying a filter. A dummy filter (e.g. task state is any of the available states), can be used in case you want to look at everything. let me know if that sorts it for you regards, Daniel
    1 point
  4. We've updated the docs to clarify that the Event Hub is not supported under Node. Please let us know if you encountered this error in some other environment. https://ftrack-javascript-api.readthedocs.io/en/latest/handling_events.html#node-support
    1 point
  5. Hi, I verified your code and could not get the issue you are reporting (testing on 4.7.0.current.13.277). Could you please create a ticket at support@ftrack.com and supply your ftrack details - ftrack url (and version, if onprem). Cheers /Henrik
    1 point
  6. @Jason Porath I found quite fine running running unit and functional tests on test projects right on production server. It is quite easy to construct any context with ftrack_api and release it after tests finished. In worst case you will got a bunch of test entities on test project that no one cares. so feel free to: @pytest.fixture def session(): return ftrack_api.Session() @pytest.fixture def context(request, session😞 context = session.create('Folder', {'parent_id': ..., 'project_id': ..., 'name': ...}) def finalizer(): session.rollback() session.delete(context) session.commit() request.addfinalizer(finalizer) return context The better approach is to running tests on staging ftrack server that should have relative fresh database snapshot from production, that is much more complex.
    1 point
  7. Hi Jen, Sorry for the late reply. I will forward this to our development team to take a look at. Regards Simon
    1 point
×
×
  • Create New...