Giter Site home page Giter Site logo

aliceo2group / bookkeeping Goto Github PK

View Code? Open in Web Editor NEW
17.0 7.0 21.0 37.03 MB

O2 Bookkeeping project for the ALICE experiment at CERN

License: GNU General Public License v3.0

Dockerfile 0.06% JavaScript 97.88% HTML 0.08% Shell 0.12% CSS 0.99% CMake 0.11% C++ 0.76%
cern alice o2 webui bookkeeping hacktoberfest alice-experiment

bookkeeping's Issues

Attached images not shown

See f.ex. https://ali-bookkeeping.cern.ch/api/attachments/1505?page=log-detail&id=38173. When clicking the attached images, the images simply fail to load. If I say "Open in new tab" (right-click context menu), then the images does show up. However, if I try to download the images from the new tab, then I get a network error. Perhaps a problem is that the files how no "extension" - i.e., the file name is 1506 not 1506.png. This makes it hard to communicate things since image attachements are not really useful. BTW, is there a way to include the image inline in the log entry? The url of the uploaded images gets all mangled so it is impossible to predict the correct URL.

[O2B-546] Runs should have Edit button only for admins

In the Run-Details Page, top right corner, there is a group of 2 buttons
image

The Edit Run button should only be displayed to admins. The check can be validated via the method model.isAdmin()

Acceptance Criteria

  • If the user is Admin, the group button should be displayed as it is now
  • If the user is a non-admin user, a single button should be displayed instead Add Logs to this Run
  • Tags should be added accordingly to validate the existence of button or not

[O2B-547] Update RUNS API request should check user permissions

Currently there is no check on updating a run on back-end. There should be one that checks if the user is admin or not

Acceptance Criteria:

  • Similar to tags.controller, add a check for admin in the runs.controller for updating the RUN
  • Add tests to validate the new behaviour;
  • OpenAPI spec file should be updated accordingly;

e.g of a similar change to tags: https://github.com/AliceO2Group/Bookkeeping/pull/547/files#diff-dfce4d9d11a31be72739d767812e1b3435a06045c19be411a28b517d2c208001

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.