Skip to content
Snippets Groups Projects

Sprint #14

Merged Bogdan Cochior requested to merge develop into master

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
132 132
133 133 if (!permission) return false
134 134
135 const collectionId = get(object, 'fragment.collectionId')
136 const { status } = await context.models.Collection.find(collectionId)
  • Alexandru Munteanu
  • 151 152 return coll
    152 153 }
    153 154
    154 const stripeFragmentByRole = (fragment = {}, role = '', user = {}) => {
    155 const stripeFragmentByRole = (
    156 fragment = {},
    157 role = '',
    158 status = '',
  • Alexandru Munteanu
  • 142 144 if (!authorAllowedStatuses.includes(coll.status)) {
    143 145 coll = {
  • Alexandru Munteanu
  • 151 152 return coll
    152 153 }
    153 154
    154 const stripeFragmentByRole = (fragment = {}, role = '', user = {}) => {
    155 const stripeFragmentByRole = (
    156 fragment = {},
    157 role = '',
    158 status = '',
    159 user = {},
    160 ) => {
    155 161 const { recommendations, files, authors } = fragment
    • In my opinion, one useful thing for functions with more than two parameters is instead to define only one object parameter. Sebi talked about it at a Show&Tell session and he already applies this on the backend.

      More can be found here.

    • Please register or sign in to reply
  • Alexandru Munteanu
  • 1 import React, { Fragment } from 'react'
    2 import { ReviewReportCard } from './'
    3
    4 const ReviewReportsList = ({ recommendations, showBorder }) => (
    5 <Fragment>
    6 {recommendations.length ? (
    7 recommendations.map((r, index) => (
  • Bogdan Cochior mentioned in commit 8add3f2b

    mentioned in commit 8add3f2b

  • Please register or sign in to reply