Giter Site home page Giter Site logo

icat.client's People

Contributors

ajkyffin avatar emiljunker avatar fisherab avatar kevinphippsstfc avatar l-mas avatar louise-davies avatar mrichards99 avatar patrick-austin avatar rkrahl avatar stuartpullinger avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ajkyffin

icat.client's Issues

Internal exceptions should not be exposed

The following attempt to add a new datafile to an existing dataset:

    datafile = [{"name" : "df3", "location" : "loc3", "dataset" : {"id" : newdsid}}]
    entity = {"Datafile" : datafile}
    self.session.write(entity)

resulted in the stack trace:

Traceback (most recent call last):
File "test.py", line 173, in test12AddFile
self.session.write(entity)
File "/usr/local/lib/python2.7/dist-packages/icat.py", line 332, in write
return self.icat._write(self.sessionId, entities)
File "/usr/local/lib/python2.7/dist-packages/icat.py", line 143, in _write
self._check(r)
File "/usr/local/lib/python2.7/dist-packages/icat.py", line 64, in _check
raise IcatException(json["code"], json["message"])
IcatException: INTERNAL: class javax.ejb.EJBException Stateless SessionBean method returned without completing transaction

ordering by calculated fields does not work

According to:

https://en.wikibooks.org/wiki/Java_Persistence/JPQL_BNF#New_in_JPA_2.0

the following should work:

select CONCAT(investigation.name, '-', investigation.visitId) as orderBy1, investigation from Investigation investigation where investigation.name = 'APPLIEDAHEAD' ORDER BY orderBy1 asc

but it doesn't, instead I get the following response:

{"code":"BAD_PARAMETER","message":"Expected token from types [NAME, DISTINCT, COUNT, MAX, MIN, AVG, SUM] at token CONCAT in SELECT < CONCAT > ( investigation.name "}

This relates to #255

Avoid generation of two packages

It turns out that have a numbered package did not help topcat as maven does not allow two versions of the same component to be included

Search improvements support

As the search functionality is altered, the client functions will need to reflect this (for the integration tests if nothing else).

drop python client

The python client uses python 2 so will have to be ported to python 3. However, we already have a better, more complete and well-maintained python client api in @RKrahl 's python-icat so it doesn't seem worth the effort.

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.