Skip to content

Instantly share code, notes, and snippets.

@markstory
markstory / bool-type-effected
Created July 6, 2018 17:07
Methods effected by bool type changes.
// List built with
// ack --noheading 'return.*\|bool' src/
// ack --noheading 'return.*bool\|' src/
src/Auth/BaseAuthenticate.php:113: * @return bool|array Either false on failure, or an array of user data.
src/Auth/DefaultPasswordHasher.php:44: * @return bool|string Password hash or false on failure
src/Auth/DigestAuthenticate.php:135: * @return array|bool Array of digest information.
src/Cache/CacheEngine.php:153: * @return bool|int New incremented value, false otherwise
src/Cache/CacheEngine.php:162: * @return bool|int New incremented value, false otherwise
src/Cache/CacheEngine.php:248: * @return bool|string string key or false
title sidebar_order
Bulk Remove a List of Issues
5

DELETE /api/0/projects/{organization_slug}/{project_slug}/issues/

: Permanently remove the given issues. The list of issues tomodify is given through the id query parameter. It is repeatedfor each issue that should be removed.Only queries by 'id' are accepted.If any ids are out of scope this operation will succeed withoutany data mutation.

@markstory
markstory / BugShell.php
Created November 11, 2018 03:20
CakePHP Issue 12485 repo
<?php
namespace App\Shell;
use Cake\Console\Shell;
use Cake\ORM\TableRegistry;
class BugShell extends Shell
{
public function main()
{
/*
SQLyog Ultimate v12.15 (64 bit)
MySQL - 5.7.24-0ubuntu0.18.04.1 : Database - pim_cake
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
import React from 'react';
import PropTypes from 'prop-types';
import {t} from 'app/locale';
import SentryTypes from 'app/sentryTypes';
import {getInterval, useShortInterval} from 'app/components/charts/utils';
import {getFormattedDate} from 'app/utils/dates';
import EventsRequest from 'app/views/organizationEvents/utils/eventsRequest';
import LineChart from 'app/components/charts/lineChart';
import MarkLine from 'app/components/charts/components/markLine';