Giter Site home page Giter Site logo

compassion-modules's People

Contributors

albertsh avatar c-meier avatar cmtcousteau avatar csester avatar davidwul avatar davidzivi avatar ecino avatar eicher31 avatar emgirardin avatar heerphilippe avatar jonathanguerne avatar jonathantarabbia avatar josuebulle avatar kcristi avatar langjer avatar loikki avatar maxime-beck avatar micksandoz avatar nbornand avatar nfluckiger avatar noeberdoz avatar quentingigon avatar samuel-fringeli avatar sebastiencompassion avatar simgonzalez avatar steveferry avatar sylvainlosey avatar theraphael0000 avatar theyiot avatar vwvw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

compassion-modules's Issues

Image preview not working when editing line

When editing a line of a tree view, the widget image preview disappears and shows the image. This results to this in the import letters view :

image_preview

Would it be feasible to deactivate that behaviour and keep the icon when editing a line ?

Workflow changes

Following Activities miss a flow_stop flag :

  • no_sub
  • sub_accept
  • sub_reject

Change name of file contract_workflow to sds_workflow.

Module account_analytic_plans_compassion is problematic

Module account_analytic_plans_compassion causes a bunch of problems when trying to upgrade the modules of compassion. We should take time to see its use and clean the code (a lot of its code comes from module account_analytic_plans).

Do not forget to put the documentation

Modules with a documentation:

  • child_compassion
  • crm_compassion
  • hr_planning
  • onramp_compassion
  • sponsorship_compassion
  • contract_compassion
  • label
  • message_center_compassion
  • partner_compassion
  • sbc_compassion
  • sponsorship_tracking
  • [unported]
  • [travis]

In order to make a documentation (using readthedocs.org) for a repository, follow theses points and try to copy a large part of the conf.py:

  1. Create a docs directory and running sphinx-quickstart inside it (https://docs.readthedocs.org/en/latest/getting_started.html)
    1. Modify the conf.py in order to add the path to the root directory
    2. Create a requirements.txt file for pip (with the modules used in the repository)
    3. If a module is not in pip, mock it inside the conf.py (see in sbc_compassion)
  2. Use sphinx-apidoc in order to create all the rst files
  3. Use the script that I have created (edit_rst_file.py in docs) in order to format the rst files
  4. Compile with make html in order to check if everything is good (try to keep a small compilation time)
  5. Commit to github
  6. Create a new project on readthedocs
  7. Import the repository
    1. Follow the steps given by the website
    2. Go to Settings->Advanced Settings
    3. Give the path to requirements.txt and conf.py
  8. Choose the default branch
    1. Go to Settings->Versions
    2. Choose which branches should be build
    3. Go to Settings->Advanced Settings
    4. Choose the default branch

Import lines fields partner_codega and child_code should be references

Change fields partner_codega and child_code to partner_id and child_id with link to actual records of related models. This makes easier setting the child and the partner in case the qr code detection didn't work.

Should adapt method _find_qrcode :

Instead of returning multiple variables, the function could return the dictionary of values needed to be passed to the create called at https://github.com/CompassionCH/compassion-modules/blob/sbc-devel/sbc_compassion/models/import_letters_history.py#L254

Variable data is never used inside the method, but is overidden and returned. Check what is the purpose of this and correct the code by either removing data from the parameters or making use of it. Also add a comment to the function to document the parameters.

[8.0] Use inheritance in tests

Tests have almost all the same setUp method and same private method for _create_contract, _create_contract_group, etc...

We should remove all this redundant code and use inheritance in tests to improve the maintainability of the code.

Import letters: Wizard for Import Line Review

We should create a wizard showing the image in order to ask a human being to verify the language and the template (at least for the first few months of use in order to verify the algorithm at a larger scale).

  • Browse the import lines that need verification one by one
  • Display image and import line data that can be edited

Rules for including a line in the review process :

  • Letter does not need translation (to be sure it is really the case and avoid transmitting a letter the child won't understand)
  • Default template is selected but Force default template was not activated, to be sure it wasn't a valid template not detected
  • Any missing data
  • ... something else ?

Unlocalize module sponsorship_compassion

Currently, module sponsorship_compassion depends on switzerland accounting (accounts defined in module chart_account_compassion). We should remove this dependency in order to make it usable for other countries.

Label: Other barcodes

when label will be inside compassion-modules:
Right now the layout allows only a square barcode (therefore QR code), but it could be nice to add some others

Don't edit accounting modules and CH-specific modules

Those modules are moved to other repositories and should not be edited in this repository from now on. I will remove them from branch master but they are still referenced in some other branches waiting for the review to be complete.

[7.0-children] way to update child basic information

There should be a way to update child basic information (age, name, ...). Should we add the update in the get_last_case_study method or add a new method to do that (but it will need to call compassion webservice) ?

I can add this, as it is needed for the message_center in case of new child allocations.

mandate not selected on direct debit order

When the partner changed his bank account the old mandate is canceled.
But when creating a DD order, the new bank account is not selected automatically. And thus we need to look for lines without a mandate and update the payment line manually. for now it's only a few. But as partner change their bank account this might become a real hassle

Filter only sponsor partners

In sbc_compassion, when searching partners from the barcode reference, filter only those who have the "Sponsor" category, in order to avoid finding duplicates.

#156 (diff)

Label: Finding some better parameters

When the labels will be integrated:
The parameters for the labels are good enough for using them, but maybe we should try to find the perfect ones and add config for the others compassion labels

QR code detection

  1. Need to verify first!
    I think that the code does not try to find the QR code on the entire page.
    If not, we should try before giving up to scan the whole page
  2. If a partner puts the QR code in the opposite corner, the algorithm will believe that the page is in reverse side. Therefore we should look at the position AND the orientation of the QR code

File encoding

NppFTP plugin puts file encoding to ANSI by default (and bypasses Npp preferences!). Until this is fixed, we will have the endlines appearing in diffs.

[7.0-children] Move project_compassion

I would move class project_compassion from module sponsorship_compassion to module child_compassion, as it is linked more with children than sponsorships.

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.