Uploaded image for project: 'Zanata'
  1. ZNTA-1912

More convenient naming for redux action and reducer modules

    Details

    • Tested Version/s:
      None
    • Sprint:
      17.09
    • Story Points:
      0.5

      Description

      In the Redux app structure, we have ended up with modules with the same name, e.g.

      app/actions/glossary.js
      app/reducers/glossary.js

      This can be a little inconvenient when looking them up in the IDE:

      Not difficult to distinguish but enough to break flow a bit.

      I propose we include the type of module in the filename to remove the ambiguity during lookup:

      actions/glossary-actions.js
      reducers/glossary-reducers.js
      utils/glossary-utils.js

      This would also help if we name test files as the file under test with a suffix. Much easier to groc what is broken if there is a failure in glossary-reducers.test.js than in glossary.test.js.

        Attachments

          Activity

            People

            • Assignee:
              damason David Mason
              Reporter:
              damason David Mason
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: