profile
viewpoint

bpinto/hatmaker 46

An Alfred Workflow Manager

bpinto/dotfiles 17

My macOS and gentoo configuration files

bpinto/dutiful 17

Keep your application preferences in sync

bpinto/docker-streisand 4

Docker image for Streisand (https://github.com/jlund/streisand)

bpinto/Alfred-Forvo-Extension 3

Search for forvo pronunciations using Alfred

bpinto/alfred-caffeine-controls 1

Control Caffeine from Alfred App

bpinto/alfred-extension-manager 1

Alfred extension (workflows) manager

bpinto/CPF-Generator 1

An Alfred extension to generate CPFs.

bpinto/Curso-Ruby-on-Rails-STI 1

O objetivo principal do Curso Web STI é incentivar o estudo aplicado ao desenvolvimento Web na graduação da Universidade Federal Fluminense (UFF). Este curso também possui como objetivos: Aumentar o interesse dos alunos de graduação da UFF pelo estágio na Superintendência de Tecnologia da Informação (STI) da UFF; Melhorar o conhecimento dos alunos da UFF através da excelência técnica.

issue commentredguava/cliniko-api

Request "Invoice" PDF URL

@DenisBogatirov you could link to the URL cliniko uses and open the link in a browser, the user will download it if they are logged into the app. If not, they will be asked to login first.

juanjgarcia

comment created time in 6 hours

issue commentredguava/cliniko-api

Request "Invoice" PDF URL

@DenisBogatirov you can't do that, you are authenticated to the API, not the web app.

juanjgarcia

comment created time in 14 hours

pull request commentjameslnewell/xhr-mock

fix #101 : fixed compare URL with query string

Perhaps a better fix could be https://github.com/jameslnewell/xhr-mock/issues/101#issuecomment-624516178 ?

smilexx

comment created time in 18 hours

pull request commentrickhanlonii/jest-watch-master

Allow plugin to be disabled

Ah, found the reason:

https://github.com/facebook/jest/blob/9ffd368330a3aa05a7db9836be44891419b0b97d/packages/jest-core/src/watch.ts#L546-L553

Do you happen to run tests with the --watchAll enabled? I start jest with --watch.

bpinto

comment created time in 4 days

pull request commentrickhanlonii/jest-watch-master

Allow plugin to be disabled

🤔 This is what I have:

Watch Usage
 › Press a to run all tests.
 › Press f to run only failed tests.
 › Press p to filter by a filename regex pattern.
 › Press t to filter by a test name regex pattern.
 › Press q to quit watch mode.
 › Press m to test changes since master.
 › Press Enter to trigger a test run.
bpinto

comment created time in 4 days

pull request commentrickhanlonii/jest-watch-master

Allow plugin to be disabled

Jest has the option to test all changes since last commit, and this plugin has added the option to test all since master (commit).

When you enable this plugin (all changes since master) you can never re-enable the option to run all tests since master. This change now allows that to happen.

bpinto

comment created time in 4 days

issue closedddnexus/pagy

Page countless does not return the relation

Rails 6.0+ has added cache_version and cache_key to relations. This is useful if you want to cache the results without having to perform a DB query first.

Rails.cache.fetch collection.cache_key, version: collection.cache_version do
  # do something
end

Its implementation uses a cache key like this:

query_signature = ActiveSupport::Digest.hexdigest(to_sql)
key = "#{klass.model_name.cache_key}/query-#{query_signature}"

It would be nice if page_countless somehow returned the relation so that we could do a .to_sql on it (or use .cache_key if on Rails 6.0+).

As a workaround, I'm doing something like this:

@relation = @collection.offset(params[:page]).limit(per_page + 1)
@pagy, @collection = pagy_countless(@collection, items: per_page)

The problem here is that pagy_countless will return the collection instead of the relation because it needs to do the pop, I'm not sure what we could do differently.

closed time in 8 days

bpinto

issue commentddnexus/pagy

Page countless does not return the relation

Thanks for the example! I see how it could work in a normal controller flow, but we have a slightly different approach, I'll try to adjust to it.

Thanks for working with me on this :+1:

bpinto

comment created time in 8 days

issue openedddnexus/pagy

Page countless does not return the relation

Rails 6.0+ has added cache_version and cache_key to relations. This is useful if you want to cache the results without having to perform a DB query first.

Rails.cache.fetch collection.cache_key, version: collection.cache_version do
  # do something
end

Its implementation uses a cache key like this:

query_signature = ActiveSupport::Digest.hexdigest(to_sql)
key = "#{klass.model_name.cache_key}/query-#{query_signature}"

It would be nice if page_countless somehow returned the relation so that we could do a .to_sql on it (or use .cache_key if on Rails 6.0+).

As a workaround, this is what I'm doing:

@relation = @collection.offset(params[:page]).limit(per_page + 1)
@pagy, @collection = pagy_countless(@collection, items: per_page)

created time in 9 days

issue commentredguava/cliniko-api

Request "Invoice" PDF URL

Well well, it's proven to be harder than I anticipated. There are some things we need to discuss before we can introduce a PDF end point:

  1. Would it work via GET or POST? I'm thinking POST could be nice for supporting custom parameters (e.g. margin, page size).

  2. We need to update our API to support extra accept headers application/pdf as of right now we only support application/json.

juanjgarcia

comment created time in 13 days

issue commentredguava/cliniko-api

Set timezone for patient via API

It's not currently possible to set the patient timezone via the API, but we are working on this right now. Once we release it, we are going to comment here again.

Or any chance you can "lookup" a time zone based on the patient's address?

We have no plans to support it right now.

digime99

comment created time in 13 days

startedkangax/compat-table

started time in 14 days

issue commentredguava/cliniko-api

Request "Invoice" PDF URL

I think this should be doable! I will confirm early next week and reply here.

juanjgarcia

comment created time in 17 days

issue closedredguava/cliniko-api

Archived patients and medical alerts

Hi Team Cliniko,

We are adding Medical alert syncing to Instinctive Notes and I've come up with a response I didn't expect.

If you call the patients endpoint it doesn't include archived patients, as expected, as those patients are in the patients/archived endpoint.

If you call the medical alerts endpoint you get all medical alerts, including from archived patients.

We generally use the archived patients list to tell us when a current patient is set to archived. We don't add archived patients that existed before a customer signed up to Instinctive Notes as they will never have appointments while archived and there's no need for us to have that data.

This means that the first time we call the medical alerts endpoint for any customer there will be a set of results returned which will never match as the patient will never exist in Instinctive Notes. We would usually use a missing patient as a prompt to go a get their record, eg in case an appointment came in before a patient was loaded, but trying to do this with an archived client results in a 404.

So the question is, if a patient is set to archived, should their records also be archived and not provided through the API. Or could a filter be added to transactional items (appointments, medical alerts, etc) which would allow excluding records if they were from an archived patient.

Let me know if you think either of these approaches is worth considering (or if there is another better answer). At the end of the day we can manage the issue on our side if necessary by throwing away records where a patient never arrives, but if you thought it would be valuable to do something here we would find it useful.

Cheers, Nick

closed time in 22 days

nicholasmott

issue commentredguava/cliniko-api

Archived patients and medical alerts

Hi @nicholasmott,

sorry for taking this long to answer. Unfortunately, we don't have a plan or solution for this yet. We have only had a few talks about this yet and this is something that will require deeper thoughts to make sure we get this right.

nicholasmott

comment created time in 22 days

issue commentredguava/cliniko-api

Getting information about deleted Appointment Types.

We have released this end point. /v1/appointment_types/archived

evorgevol

comment created time in 22 days

issue closedredguava/cliniko-api

Getting information about deleted Appointment Types.

When calling the appointment api it returns an appointment_type link, if that type is gone then it just returns a 404. Is there any way to get the information for that appointment_type? ie, similar to inactive practitioners endpoint.

Thanks

closed time in 22 days

evorgevol

fork bpinto/flipper

:dolphin: feature flipping for ruby (performant and simple)

https://flippercloud.io

fork in 22 days

issue commenttpope/vim-rails

Unable to override default projections

I think I'm experiencing a similar issue, I've got global projections configured but they are overridden by vim-rails:

# init.vim

let g:projectionist_heuristics = json_decode(join(readfile(expand('~/.config/projections.json'))))
# projections.json

{
  "front-end/": {
    "*.js": {
      "alternate": "{}.test.js"
    },
    "*.test.js": {
      "alternate": "{}.js"
    }
  }
}
# /src/app/front-end/pages/index.js

::echo projectionist#query("alternate")
[['/src/app', 'front-end/pages/index.test.js']]

:A
E345: Can't find file "/src/app/front-end/pages/index_spec.js" in path
kleinjm

comment created time in a month

PR opened rickhanlonii/jest-watch-master

Allow plugin to be disabled

This allow m flag to be disabled (run tests since last commit) or enabled (run tests since branch).

+6 -2

0 comment

1 changed file

pr created time in a month

create barnchredguava/jest-watch-master

branch : support-reset

created branch time in a month

delete branch redguava/jest-watch-master

delete branch : support-reset

delete time in a month

push eventredguava/jest-watch-master

Bruno Pinto

commit sha 1c3ffa70d1149e532148c765edd916062a57b6aa

Allow plugin to be disabled

view details

Bruno Pinto

commit sha 775c7039067244b647cbd900cfbbb7d0fa5bec05

Merge pull request #1 from redguava/support-reset Allow plugin to be disabled

view details

push time in a month

create barnchredguava/jest-watch-master

branch : support-reset

created branch time in a month

PullRequestReviewEvent

issue commentredguava/cliniko-api

Deleted medical alert not listed

I've checked the archived endpoint and I notice that each record has an archived_at field and a deleted_at field and they are both filled with the same date/time. Is this expected behaviour or should the deleted_at be nil until the medical alert is hard deleted?

They are aliased attributes, our goal is to always expose them as archived_at but since we need to maintain backwards compatibility, for end points where the deleted_at attribute was already exposed, we will have the same information available with two different names.

nicholasmott

comment created time in a month

issue commentredguava/cliniko-api

Waitlist Endpoint

I wish we had better news, but wait list entries was one of the first (if not the first) API we created and it doesn't adhere to the format we use on all other end points, so we need to rewrite it before we can expose it. And right now there is no one actively working on it.

jahkey

comment created time in 2 months

push eventbpinto/dotfiles

Bruno Pinto

commit sha 7313db7b849c926a6a85f9f61657d114ffefa8e4

zsh is default shell on macOS

view details

Bruno Pinto

commit sha b8a7b174cd2c84da49a9d4588d7188ec3d03a38b

`enter` is accept not abort This was causing git commands return status to be non-zero.

view details

Bruno Pinto

commit sha 2aaf7f821e226816941cc2dc85a646d958e298b7

Copy git sha1 when using git lg|lga

view details

Bruno Pinto

commit sha 89d1bfaf5dd4fcde845bc4478ce82f1764e1b774

fzf-preview.vim: vim + fzf

view details

Bruno Pinto

commit sha fcffdfa0059ce86884a248b3974ce628cb94cf83

node@12

view details

Bruno Pinto

commit sha e7c2c2d03834a95dfc0f27503e8148fdec9c8083

iina

view details

Bruno Pinto

commit sha d787bafe9ea8984a4af531bc7314b7b0fe7b104a

WIP: docker-compose wrapping functions

view details

Bruno Pinto

commit sha d3e352c8f33284fa49caf3c9778062a66f797043

cfn-lint

view details

Bruno Pinto

commit sha 2b90a243dfe1753a9616d1375265e9b52960337a

awscli

view details

Bruno Pinto

commit sha 8ded66a9ce65a5ee3d247aa44e94d526dd53ae8e

Conditionally add node_modules/.bin to PATH

view details

Bruno Pinto

commit sha 2ef38a0d53f4a1a5838f6f65dbf15e7beb70c73a

Brew updates

view details

Bruno Pinto

commit sha a8c254f4fb6eee064d6efe5c21c8d7b0d98a4fc7

Alacritty upgrade

view details

Bruno Pinto

commit sha 65f41fd6a68867a838f3314b410dcdc253b6f915

macOS setup script continuation

view details

Bruno Pinto

commit sha de50f29f64eb8915e5f19453e31589b0976f2952

Install insomnia

view details

Bruno Pinto

commit sha 7d8608536c6bdf0668742cecf86ec0a129fb2d99

Install shiori

view details

Bruno Pinto

commit sha 0339315b9d56e833e60b793053e774fd4c190b2b

Install docker-edge Supports mutagen two-syncing strategy

view details

Bruno Pinto

commit sha 065e94853e8ff7d0760c34357c1535b9f9be0d5f

Install numi

view details

Bruno Pinto

commit sha e5dbc6e472120f1d23d47647e7dcd6d8792d2b63

Install discord

view details

Bruno Pinto

commit sha fb61c299ea8042f1fc1a9b7e19c17dc729a83e17

wip

view details

Bruno Pinto

commit sha d67e3c1beefba1d63f7103305154173afcdfef4f

Revert "fzf-preview.vim: vim + fzf" This reverts commit da2e48456de342aacc27f54e859b2297fc9e2317. There are too many dependencies to be installed now for this plugin.

view details

push time in 2 months

push eventbpinto/dotfiles

Bruno Pinto

commit sha 4f44350a5d0b338647118f914bd3ed9264dea145

fixup! zsh is default shell on macOS

view details

push time in 2 months

push eventbpinto/dotfiles

Bruno Pinto

commit sha 9c7c5c070ad7a487fe15916724e881f48880a2ad

wip

view details

Bruno Pinto

commit sha 82e6f72526c8c20261205942de084167a1bc7e56

Revert "fzf-preview.vim: vim + fzf" This reverts commit da2e48456de342aacc27f54e859b2297fc9e2317. There are too many dependencies to be installed now for this plugin.

view details

push time in 2 months

issue comment2ndQuadrant/pglogical

Replicating DELETE commands together with row_filter does not work

I have not and thus had to give up on this idea. :(

kouber

comment created time in 3 months

more