Giter VIP home page Giter VIP logo

coog-fed-planning's People

Contributors

dominiquebertrand avatar

Watchers

 avatar

coog-fed-planning's Issues

[API] As API user, I want to be able to customize how those informations will be displayed to the end user, most notably by grouping some data together under a header.

GOAL

As API user, I want to be able to customize how those informations will be displayed to the
end user, most notably by grouping some data together under a header.

Solution

Add new entry "groups" into "questionnaire / part" to allow question group management.

TODO

  • Add this new entry into Coog API RPC (Coog BO) (Blocked by 13077)
  • Add this new entry into Coog API REST (Coog Gateway)

The model become:

Questionnaire:

{
   "id":Integer,
   "title":String,
   "mandatory":boolean,
   "sequence":Integer,
   "description":String,
   "questions":[
      Question
   ],
   "groups":[
      Group
   ]
}

Group:

{
   "questions":[
                     {
                             "code":String,
                             "sequence":Integer                  
      }           
   ],
           "title":String,
           "description":String,
           "tooltip":String
}

Exemple de groups:

"groups":[
      {
         "questions":[
            {
               "code":"refund_question",
               "sequence":"1"
            }
         ],
         "title":"Couverture globale",
         "description":""
      },
      {
         "questions":[
            {
               "code":"question_1",
               "sequence":"1"
            },
            {
               "code":"question_2",
               "sequence":"2"
            },
            {
               "code":"question_3",
               "sequence":"3"
            }
         ],
         "title":"Optique",
         "description":"Vos besoins en matiere d'optique"
      }
   ]

Bug - DLPK medical formalities

  • Misses the Header:
    image-2

  • Misses the Theme:
    image-3

  • Drag & drop does not work:
    image-4

  • The display of the required documents is not stable:
    Before the refresh of the page:
    image-5
    After the refresh of the page:
    image-6

[COOG RPC API] Web resources should be identified with their code in APIs

Web resources should be identified with their code in APIs
[COOG RPC API] Request to get questionnaires failed when using "Web Resources"
=> see https://support.coopengo.com/issues/13003

To Reproduce
Steps to reproduce the behavior:

Request:
URL: [COOG_URL]/[COOG_DB_NAME]
Method: POST
Payload:
{ "id": 1, "method": "model.api.core.list_questionnaires", "params": [ {}, { "user": 4, "dist_network": 3 }, {} ] }

Response:
{ "id": 1, "error": [ "keys must be str, int, float, bool or None, not web.ui.resource.key", "Traceback (most recent call last):\n File \"/trytond/wsgi.py\", line 104, in dispatch_request\n return endpoint(request, **request.view_args)\n File \"/trytond/protocols/dispatcher.py\", line 65, in rpc\n request, database_name, *request.rpc_params)\n File \"/trytond/wsgi.py\", line 72, in auth_required\n return wrapped(*args, **kwargs)\n File \"/trytond/protocols/wrappers.py\", line 148, in wrapper\n return func(request, pool, *args, **kwargs)\n File \"/trytond/protocols/dispatcher.py\", line 318, in _dispatch\n response = app.make_response(request, result)\n File \"/trytond/wsgi.py\", line 123, in make_response\n response = cls.response(data, request)\n File \"/trytond/protocols/jsonrpc.py\", line 173, in response\n response, cls=JSONEncoder, separators=(',', ':')),\n File \"/json/__init__.py\", line 238, in dumps\n **kw).encode(obj)\n File \"/json/encoder.py\", line 199, in encode\n chunks = self.iterencode(o, _one_shot=True)\n File \"/json/encoder.py\", line 257, in iterencode\n return _iterencode(o, 0)\nTypeError: keys must be str, int, float, bool or None, not web.ui.resource.key\n" ] }

[BUG] API v1 / Contract / Documents : request fails with status code 506

Description
The request fails with status code 506 when I try to get the documents from a contract.

To Reproduce
Steps to reproduce the behavior:

  • Request URL: [GATEWAY_URL]/api/v1/contract/[CONTRACT_ID]/document_request_lines?_fields=document_desc
  • Request Method: GET
  • Response Status Code: 506 Variant Also Negotiates
  • Response Body: ["RPC Error (0): read() missing 1 required positional argument: 'fields_names'"]

[BtoB] Create a react component which allow to visualize and manage a "Questionnaires" form

Create a react component which allow to visualize and manage a "Questionnaires" form ( ie. Recueil des Besoins).

Preview:

yyyyyy

Additional context

  • This component must be a pure presentational component.
  • It must be a part of the package "coog-react-component"
  • It must be integrated into the storybook
  • The component name is QuestionnaireBlock
  • main branch: feature/salesroute/custom-components

Note:

remove branches "feature/custom-component-questionnaire-block" and "feature/custom-component-sales-route" after end sprint.

[BtoB] Create a react component which allow to visualize offers and select at least one in a "Salesroute"

Create a react component which allow to visualize offers and select at least one in a "Salesroute"
=> see details in the functional specifications

** Preview:
yyyyyy

Additional context

  • This component must be a pure presentational component.
  • It must be a part of the package "coog-react-component"
  • The name of this component is "OffersBlock"
  • main branch: feature/salesroute/custom-components

Note:

remove branches "feature/custom-component-questionnaire-block" and "feature/custom-component-sales-route" after end sprint.

[API] Provide the list of the actions available on a product for a broker / user

The purpose of this feature is to provide to the front-end the list of the action available on a product for a broker / user. The info will allow the frontend to display the related action button only if it is allowed / available.

example: If the subscription is not available, API provide this information to the front end to allow us to hide / disable the button "Subscribe".

EPIC - As a BtoB user, I would like to be able to create a loan contract insurance with several subscribers.

Acceptance Criteria

  1. If I create a "sales route" for a loan contract insurance with several elements covered
  2. I would like to be able to create a contract by covered element

Example:
If I create a loan insurance sales route with:

  1. 2 x loans: L-A & L-B
  2. 2 x covered elements (party): EL-1 & EL-2
    I would like to create:
  3. 1 x contract C-1 with L-A & L-B loans for the EL-1 subscriber.
  4. 1 x contract C-2 with L-A & L-B loans for the EL-2 subscriber.

Also, here are a few points that need to be addressed:

  1. Constraint 1: contracts C-1 and C-2 must use the same loans (L-A and L-B) and the same elements covered (EL-1 and EL-2). These must not be duplicated in Coog.
  2. Constraint 2: It should be done in one transaction.

Resources:

  • Mockups: ?

Notes

[ API-Schema ] Microservice dedicated to schema request of Coog API

As a Microservice i would like to request a service dedicated to schema construction.

I want to be able to call this service, and he return to me the Mongoose Schema, input Validation, and the Yaml Documentation.

The idea is to have a single entrypoint for the JSONSchema 7.0 parser and this one will have credentials by the event of gateway initialisation.

For now the use of this one is to remove the model schema inside API-B2B server.

This feature will eventually be developped alongside the implmentation of Event Driven Architecture Feature

[API] Add support of "frequence_mensualite" and "date_premier_paiement" into quotation engine (API v1)

Context

I want to calculate offer on a product which have a rule option with get_loan_first_payment_date and get_loan_payment_frequency.

Input

Quotation with loan

Output

No error but calc.

Acceptance test

For the rule function get_loan_payment_frequency return the correct frequency (year or month)

For the rule function get_loan_first_payment_date, with those release date and frequency return:

  • 2019-02-28/year => 2020-02-29
  • 2020-02-29/month => 2020-03-31
  • 2020-03-31/month => 2020-04-30
  • 2020-04-30/month => 2020-05-31
  • 2019-02-27/month => 2019-03-27

[API] - Add new entry "groups" into "questionnaire / part" to allow question group management.

TODO:

  • add the new entry into Coog Gateway
  • add Swagger documentation related to the new entry
  • add functional tests related to the new entry

Dependencies

=> Blocked by 13077

The model become:

Questionnaire:

{
   "id":Integer,
   "title":String,
   "mandatory":boolean,
   "sequence":Integer,
   "description":String,
   "questions":[
      Question
   ],
   "groups":[
      Group
   ]
}

Group:

{
   "questions":[
                     {
                             "code":String,
                             "sequence":Integer                  
      }           
   ],
           "title":String,
           "description":String,
           "tooltip":String
}

Exemple de groups:

"groups":[
      {
         "questions":[
            {
               "code":"refund_question",
               "sequence":"1"
            }
         ],
         "title":"Couverture globale",
         "description":""
      },
      {
         "questions":[
            {
               "code":"question_1",
               "sequence":"1"
            },
            {
               "code":"question_2",
               "sequence":"2"
            },
            {
               "code":"question_3",
               "sequence":"3"
            }
         ],
         "title":"Optique",
         "description":"Vos besoins en matiere d'optique"
      }
   ]

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.