Giter Site home page Giter Site logo

docdoku-plm-front's People

Contributors

defmsy avatar elisabelgenereux avatar florentgarin avatar hunsu avatar ludobarel avatar mguimard avatar sah4ez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docdoku-plm-front's Issues

User defined function errors

Running a function on products : sum on a column of the last released for a product, the WS do not return any content and the front probably does not handle it, the running button is still loading, there is a console error TypeError: a.first(...) is undefined; possible reason : every part link to the product does not have the selected column.
The same on a sum on an existing number column of the last released for a product, for a decimal value, the resultat is approximate (for a part of with value 18, and a part with value 0.1, the result of the sum is 18.200000000000003; after adding another part of 0.1, the result became 18.300000000000004)

Worker load fail in build

Worker fails to load in build app.

Failed to load resource: product-structure/js/workers/InstancesWorker.js the server responded with a status of 404 ()

Can't create a new part

I can't create a new part, I get
Unhandled system error : org.eclipse.yasson.internal.serializer.BooleanTypeDeserializer.deserialize threw javax.json.bind.JsonbException: Internal error: Unknown JSON value: VALUE_NUMBER in BooleanTypeDeserializer.java at line 53

Looking at the data type that the JSON is to get de-serialized to it is expecting a boolean value for the standardPart field: https://github.com/polarsys/eplmp/blob/master/eplmp-server/eplmp-server-rest/src/main/java/org/polarsys/eplmp/server/rest/dto/PartCreationDTO.java

The front end is sending this as a 0 or 1. If I use Postman to intercept and modify the standardPart field and replace 1 or 0 with true or false the request works correctly.

{ "number":"sdfdg", "workspaceId":"Test", "description":"sdgsdgf", "name":"sdgsdg", "standardPart":0, "templateId":null, "workflowModelId":null, "roleMapping":null, "acl":null }

I'm using eplmp-server 2.5.0 and docdoku-web-front 2.5.0.

It looks like in app\product-management\js\views\part\part_creation_view.js
standardPart: this.$inputPartStandard.is(':checked') ? 1 : 0
should be replaced with
standardPart: this.$inputPartStandard.is(':checked') ? true : false ?

Error in visio call between 2 different users

Test with 2 computers and 2 different webcam :
It works the first time, when the user 1 close the call window, he does not see the user connected and the user 2 see every users online; without changing the page, none of the 2 users can call the other back.
When calling, sometimes I get 'null' of 'undefined' instead of the login and/or workspace.
When trying with only one webcam, it does not work.

Problems found on chat on PLM between 2 users

Errors found on chat
User 1 on firefox (v56), User 2 on chromium (v48) :
Login with 2 different account on 2 different browser, the 2 users can send each other messages; when reloading, the history is wiped.

  • After logging in and wait at least the duration of the timeout, with 2 users, while changing page for the user 1 I am redirected to the workspace administration page (normal), I look at the coworkers online and see every one online; for the user 2, the user 1 is now offline.
  • After a log out / log in for user 1, no coworkers are shown as online, yet for the user 2 every coworkers are online. When the user 2 log out / log in, the 2 users see each other online normally.
  • JS error on chromium when displaying the coworkers WebSocket is already in CLOSING or CLOSED state.
  • There are times when the workspace name is 'undefined' or empty, probably when we are on the workspace administration page.
  • When trying to send a message to a offline user (even if he is online), their is a message telling the user to the user is unreachable.
  • When every coworkers are shown as online but none are in reality, their is a message telling the user to verify if the browser support websocket or the ISP block it.

[Workflow role mapping] when creating doc or part

At creation time (doc or part) when mapping the roles by just entering inside the group field the system requires after that to fill that field (even if a user has been supplied).

Didn't test but probably the same happen if we fill the group field and no the user one.

[Webhook] Post query

The first time a webhook is created (just click on Add then Save) the REST payload call is as:
parameters : {method: "POST", url: "http://", authorization: null}

Unfortunately the parameters must be sent as array.

[Build Process] Cache Control

In order to solve the browser cache pitfall on static artifacts, the buid process should generate unique name for static resources.

[Webhook] Get method

GET method is not sent (onchange event syndrome?) when creating a simple webhook.

Document Collection JS Error

After creating a document collection (with the button "Create a baseline"), even if I select latest checked in or latest released documents, I can add any type of document, i can also check in check out a document to add it multiple times.
After saving the documents selected, when i click again on the buttons to add or save the collection, i get a JS Error : TypeError: App.config.documentBaselineInProgress is undefined

[Disable User] Access right

The disabling feature is not properly rendered by the UI.
More precisely when disabling a user when he is a member of a group does not really have the effect of disabling him but rather removing his access rights defined at user level and hence switching back to what is defined at group level.

So the stroke line indicator is not appropriate and as well as the wording used inside the button.

[File on PartMasterTemplate] UI miss guiding

The PartMasterTemplate UI gives the wrong indication that we could add more than one file (the tab is named files).

Actually only one file can be uploaded as it is a template for CAD file.
We should not allow uploading more than one file and we could also permitting uploading many files for regular files set (not CAD).

Encoding of queryString within advanced search

In javascript side, after building queryString for an advanced search (document or part) , encoding is applied on queryString as a whole by mean of encodeURIComponent. So, the reserved characters (&, ?, #, /, %, = +, ...) are then encoded, which leads in back-end to decoding confusion between the reserved characters and these same characters as part of the search string. So, the solution is to apply encodeURIComponent on each term searched separately, then build the final query string to be sent to server.
Furthermore, two characters ';' and ':' are used as attributes delimiter and attributes splitter respectively when searching attributes. Both must be escaped when they are in searched terms, prior to send query string.

Server unavailable

When back end is unavailable, a message indicates it, but too many button are displayed: "Back" "Workspace management" and "Logout".

Only one button (or link) should be displayed with label "Reload"

Problems found on chat on PLM between 2 users - 3

Errors found on chat with User 1 on firefox (v56), User 2 on chromium (v48) :
There are times when the workspace name is 'undefined' or empty, probably when we are on the workspace administration page.

[Effectivity] Date based

Issue creating date based effectivity:

java.text.ParseException: Unparseable date: "2017-06-15T00:00:00+02:00"
at java.text.DateFormat.parse(DateFormat.java:366)
at com.docdoku.core.util.DateUtils.parse(DateUtils.java:51)
at com.docdoku.server.rest.converters.DateAdapter.unmarshal(DateAdapter.java:51)
at com.docdoku.server.rest.converters.DateAdapter.unmarshal(DateAdapter.java:36)

Errors on quick search

Errors on quick search for parts :

  • By part number does not get all the parts which contains the chosen string (example the string 'test' return the parts 'test', 'test1', 'test2' but not 'test_1', 'test_2'..)
  • By author name get the same results for 2 different accounts with the same account name
  • By creation date / modification date / standard part : no filter (the only displayed the parts which have been already checked in at least once)
  • By template : there is an exception displayed
    Unhandled system error : org.glassfish.jersey.server.ServerRuntime$2.run threw javax.ws.rs.NotFoundException: HTTP 404 Not Found in ServerRuntime.java at line 323

Websocket and JWT refresh

Errors found on chat with User 1 on firefox (v56), User 2 on chromium (v48) :
After logging in and wait at least the duration of the timeout, with 2 users, while changing page for the user 1 I am redirected to the workspace administration page (normal), I look at the coworkers online and see every one online; for the user 2, the user 1 is now offline.
After that, when I log out / log in for user 1, no coworkers are shown as online, and after changing page for the user 2, every coworkers are online. When the user 2 log out / log in, the 2 users see each other online normally.

[CAD file] JS error when an attached file is missing for a part

When an attached file is missing for a part, on the 3D view there is a JS error when displaying the part and zooming on it :
TypeError: Argument 6 is not valid for any of the 6-argument overloads of WebGLRenderingContext.texImage2D.

Example : cube.obj and cube.mtl are attached to the part but it still need a cube.png (error 404 when requesting it), cube.zip

Link of a part does nothing

An user forbidden on an part can see the products linked to it, and the link through the part does nothing (WS call to part return 403); the same for the baselines and deliverables.
The same for document forbidden for the user, the link in the part does nothing (WS call to document return 403).
A message should be added

Redirect on permalink

Redirection to home page is not well managed on permalink (documents and parts) pages.
The boolean needsAuthentication is set to false on this module, which prevents the redirect. Find a better way for redirect on this module.

Problems found on chat on PLM between 2 users - 4

Errors found on chat with User 1 on firefox (v56), User 2 on chromium (v48) :
When trying to send a message to a offline user (even if he is online), their is a message telling the user to the user is unreachable; But when every coworkers are shown as online (but none are in reality - #28), their is a message telling the user to verify if the browser support websocket or the ISP block it.

Error on creation and deletion of effectivity

I can click multiple times on the create button of an effectivity on a part, the popup of creation is still open and all the effectivity are created.
I can click multiple times on the delete button of an effectivity while the popup of confirmation is open (it open multiple times the popup) and when I confirm the deletion of an effectity already deleted, there is an error shown :
Unhandled system error : org.polarsys.eplmp.server.EffectivityManagerBean.deleteEffectivity threw java.lang.NullPointerException in EffectivityManagerBean.java at line 318

[npm run dev] Cache access denied

When i've tried to execute npm run dev an error shown up permission denied, mkdir '~/.cache/bower/registry/registry.bower.io/lookup'. So, i've used sudo chmod -R 777 ~/.cache/ and the npm run dev ran successfully.

Errors on query building for parts

Errors on query building for parts :

  • The export list of article does not take into account the "group by" and "order by", the displayed data is different in the list and in the exported file
  • All the attribute added in the query are not placed in the column they are meant to be in the exported file (in the list it works fine); Found problem : the column Standard (true/false) is empty and all the columns to the right are moved by one case to the left, which is making the data false
  • The column lifecycle return an url in localhost http://localhost:8080/eplmp-server-rest/documents/workspace/1/A
  • Adding deliverable element in the context input block the search : JS error : Error: Missing filters list
  • When hiding the query builder, the page return to the classic list and not the filtered list; and when you show the query builder again, the filtered list is shown again but the filter of the query are empty

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.