[1.0.x] Calculation Fields

Created on 26 March 2024, 3 months ago
Updated 19 June 2024, 7 days ago

Project description

Calculation fields is a module that allows users/devs to create form calculation elements to process math expressions.
Like the code below:
( :field_1 * :field_2 ) + 100
The calculation element listener to the fields involved in the expression and calculates the result after the user changes all those fields.
Enabling the sub-module Webform calculation fields users can create these elements using the webform ui.

Project link

https://www.drupal.org/project/calculation_fields

📌 Task
Status

Needs work

Component

module

Created by

🇧🇷Brazil joaopauloc.dev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @joaopauloc.dev
  • 🇮🇳India vishal.kadam Mumbai

    Thank you for applying!

    Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.

    The important notes are the following.

    • If you have not done it yet, you should run phpcs --standard=Drupal,DrupalPractice on the project, which alone fixes most of what reviewers would report.
    • For the time this application is open, only your commits are allowed.
    • The purpose of this application is giving you a new drupal.org role that allows you to opt projects into security advisory coverage, either projects you already created, or projects you will create. The project status won't be changed by this application and no other user will be able to opt projects into security advisory policy.
    • We only accept an application per user. If you change your mind about the project to use for this application, or it is necessary to use a different project for the application, please update the issue summary with the link to the correct project and the issue title with the project name and the branch to review.

    To the reviewers

    Please read How to review security advisory coverage applications , Application workflow , What to cover in an application review , and Tools to use for reviews .

    The important notes are the following.

    • It is preferable to wait for a Code Review Administrator before commenting on newly created applications. Code Review Administrators will do some preliminary checks that are necessary before any change on the project files is suggested.
    • Reviewers should show the output of a CLI tool only once per application.
    • It may be best to have the applicant fix things before further review.

    For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues .

  • 🇮🇳India vishal.kadam Mumbai

    Remember to change status, when the project is ready to be reviewed. In this queue, projects are only reviewed when the status is Needs review.

  • Status changed to Needs review 3 months ago
  • Status changed to Needs work 7 days ago
  • 🇮🇳India rushiraval

    Fix phpcs issues

    phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml calculation_fields/

    FILE: calculation_fields/README.md
    ----------------------------------------------------------------------
    FOUND 0 ERRORS AND 10 WARNINGS AFFECTING 10 LINES
    ----------------------------------------------------------------------
    4 | WARNING | Line exceeds 80 characters; contains 403 characters
    9 | WARNING | Line exceeds 80 characters; contains 141 characters
    16 | WARNING | Line exceeds 80 characters; contains 86 characters
    21 | WARNING | Line exceeds 80 characters; contains 118 characters
    24 | WARNING | Line exceeds 80 characters; contains 512 characters
    31 | WARNING | Line exceeds 80 characters; contains 178 characters
    50 | WARNING | Line exceeds 80 characters; contains 109 characters
    53 | WARNING | Line exceeds 80 characters; contains 199 characters
    72 | WARNING | Line exceeds 80 characters; contains 118 characters
    74 | WARNING | Line exceeds 80 characters; contains 164 characters
    ----------------------------------------------------------------------

    FILE: calculation_fields/calculation_fields.info.yml
    --------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
    --------------------------------------------------------------------------------
    1 | WARNING | Remove "project" from the info file, it will be added by
    | | drupal.org packaging automatically
    1 | WARNING | Remove "datestamp" from the info file, it will be added by
    | | drupal.org packaging automatically
    1 | WARNING | Remove "version" from the info file, it will be added by
    | | drupal.org packaging automatically
    --------------------------------------------------------------------------------

    FILE: calculation_fields/modules/calculation_fields_example/calculation_fields_example.info.yml
    --------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
    --------------------------------------------------------------------------------
    1 | WARNING | Remove "project" from the info file, it will be added by
    | | drupal.org packaging automatically
    1 | WARNING | Remove "datestamp" from the info file, it will be added by
    | | drupal.org packaging automatically
    1 | WARNING | Remove "version" from the info file, it will be added by
    | | drupal.org packaging automatically
    --------------------------------------------------------------------------------

    FILE: calculation_fields/modules/webform_calculation_fields/README.md
    --------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 14 WARNINGS AFFECTING 14 LINES
    --------------------------------------------------------------------------------
    4 | WARNING | Line exceeds 80 characters; contains 395 characters
    9 | WARNING | Line exceeds 80 characters; contains 178 characters
    18 | WARNING | Line exceeds 80 characters; contains 111 characters
    21 | WARNING | Line exceeds 80 characters; contains 118 characters
    24 | WARNING | Line exceeds 80 characters; contains 325 characters
    25 | WARNING | Line exceeds 80 characters; contains 81 characters
    28 | WARNING | Line exceeds 80 characters; contains 213 characters
    31 | WARNING | Line exceeds 80 characters; contains 216 characters
    34 | WARNING | Line exceeds 80 characters; contains 177 characters
    40 | WARNING | Line exceeds 80 characters; contains 223 characters
    43 | WARNING | Line exceeds 80 characters; contains 223 characters
    46 | WARNING | Line exceeds 80 characters; contains 134 characters
    49 | WARNING | Line exceeds 80 characters; contains 271 characters
    51 | WARNING | Line exceeds 80 characters; contains 161 characters
    --------------------------------------------------------------------------------

    FILE: calculation_fields/modules/webform_calculation_fields/webform_calculation_fields.info.yml
    --------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
    --------------------------------------------------------------------------------
    1 | WARNING | Remove "project" from the info file, it will be added by
    | | drupal.org packaging automatically
    1 | WARNING | Remove "datestamp" from the info file, it will be added by
    | | drupal.org packaging automatically
    1 | WARNING | Remove "version" from the info file, it will be added by
    | | drupal.org packaging automatically
    --------------------------------------------------------------------------------

    FILE: calculation_fields/modules/calculation_fields_example/webform_calculation_fields_examples.info.yml
    --------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
    --------------------------------------------------------------------------------
    1 | WARNING | Remove "project" from the info file, it will be added by
    | | drupal.org packaging automatically
    1 | WARNING | Remove "datestamp" from the info file, it will be added by
    | | drupal.org packaging automatically
    1 | WARNING | Remove "version" from the info file, it will be added by
    | | drupal.org packaging automatically
    --------------------------------------------------------------------------------

    Time: 165ms; Memory: 10MB

  • 🇮🇳India vishal.kadam Mumbai

    1. FILE: README.md

    The module uses a README.md file instead of a README.txt file. While the Drupal coding standards have not been yet updated about that, the Drupal.org community consider that positive.
    Since there is a README.md file, that should follow the content and formatting described in README.md template .

    2. FILE: calculation_fields.module

    /**
     * @file
     * Contains hooks implemented by the calculation fields module.
     */

    FILE: modules/calculation_fields_example/calculation_fields_example.module

    /**
     * @file
     * Contains custom feature for the module.
     */

    The usual description for a .module file is Hook implementations for the [module name] module. where [module name] is the module name given in the .info.yml file.

Production build 0.69.0 2024