Contribute to Open Source. Search issue labels to find the right project for you!

brew upgrade should download new version first

Homebrew/brew

A detailed description of the proposed feature

When upgrading a bottle, first download the new version, then remove the old one and, finally, install the new.

The motivation for the feature

When upgrading things, the thing being upgraded will be unavailable for some time, since its first removed and then the download starts.

I regularly run brew upgrade and keep working since it takes some time… and often what I’m using (e.g. go) becomes unavailable during the process.

This can also lead to a “broken environment” if the user looses internet connection during the download.

How the feature would be relevant to at least 90% of Homebrew users

Probably the more common use case is being able to use the software being upgraded while its being upgraded…

It is also how other macOS apps works: the “updater” downloads the new version while you’re using the currently installed one.

So I think the relevance is in “working as most users would expect” (or maybe its just me 😂).

What alternatives to the feature have been considered

If you keep the machine up all the time, maybe a cron job to do it at 4AM or something… not many ideas though 🤔


Thanks for Homebrew BTW, saved me TONS of time of the years! 🙏

Updated 18/08/2019 12:17 1 Comments

Documentation For Updating Roles

thepracticaldev/dev.to

Is your feature request related to a problem? Please describe.

<!– A clear and concise description of what the problem is. Ex. I’m always frustrated when […] –>

Describe the solution you’d like - We need documentation on how to update your role in development so you can take certain actions. For example, if you want to fix a bug related to tag moderator or admin views. In order to see tag mod views, you’ll want to go in the rails console and update the role like this: User.find(x).add_role :tag_moderator. - You can find all roles here in the role.rb file. If you do a quick search of has_role in the codebase, you should be able to see which areas need certain role access. - We manage roles with the rolify gem, so please include that in doc too: https://github.com/RolifyCommunity/rolify - Add this documentation under “Backend Guide” - We already have some stuff on roles in backend guide -> admin panel but this should give an overview of roles in general. Maybe link this new documentation into that file too.

<!– A clear and concise description of what you want to happen. –>

Additional context - Here’s a guide for contributing to docs: https://docs.dev.to/contributing/

Updated 17/08/2019 18:42

LDAP group_search_base_dns is being handled wrong

sous-chefs/grafana

Cookbook 5.1.1 on RHEL 7 and Chef client 14.10 (doesn’t matter in this case).

TL;DR : Pretty sure group_search_base_dns is supposed to be implemented as an Array, not String.

Longer:

Even though search_base_dns is an Array, the docs and code have group_search_base_dns as a String.

Docs: group_search_base_dns String POSIX, An array of the base DNs to search through for groups. Typically uses ou=groups

When implemented as a string per the docs, LDAP authentication throws a TOML error. grafana_config_ldap_servers 'grafana' do ... search_base_dns ['dc=our,dc=org'] search_filter '(&(objectCategory=Person)(sAMAccountName=%s))' group_search_base_dns 'dc=our,dc=org' ... end Error: t=2019-08-17T14:13:44-0400 lvl=eror msg="Error while trying to authenticate user" logger=context userId=0 orgId=0 uname= error="Failed to get LDAP config: Failed to load LDAP config file: Near line 26 (last key parsed 'servers.group_search_base_dns'): expected value but found \"dc\" instead"

This is because the string is rendered in TOML without quotes / not as a string:

group_search_base_dns = dc=our,dc=org

Regardless, I suspect the bottom-line problem is that group_search_base_dns is supposed to be implemented and documented as type Array, not String.

Updated 18/08/2019 17:05 1 Comments

Sidebar buttons misplaced in question layout

publiclab/plots2

Hi, @CleverFool77 @gautamig54 – noticed this unexpectedly went a bit odd:

image

https://publiclab.org/questions/rafabeur/08-16-2019/i-need

Would you mind taking a look? Also, I think it may be worthwhile to consider a cleanup of the questions template to bring it more inline with the note template. I like the “related questions” area but otherwise, it’s pretty messy. Do you want to open a new issue to explore what we can do to bring it more in line with the style guide? Thank you!

Updated 17/08/2019 08:13 2 Comments

Login flow issues - explore and address with system tests

publiclab/plots2

I noted that when logging in, if I don’t have the correct username, I’m sometimes redirected to the /research page or to the front page (/) instead of back to the login page. Sometimes I see a notice that says something like You must be logged out to see that page.

I also note #4691 and https://github.com/publiclab/plots2/issues/5198 as potential login flow issues.

I’d like to suggest we create system tests to try to reproduce these scenarios, which can be quite complex, and that we try to expand our system tests to cover many of these flows and resolve them.

cc @SidharthBansal as you’ve done so much great work on login flow, and now our new system tests make automatically testing and protecting these flows much easier!

Updated 17/08/2019 14:02 3 Comments

Fix syntax issue caused by non word characters

openflighthpc/flight-metal

This is likely an issue with Commander, but I’m not sure. Somehow it a command is trailed by a symbol, it still recognises the command to run. However it then gets the first argument wrong, as it appears to think the entire <command-name><symbol> is the first arg. Very strange

[root@forgiemodo flight-metal]# bin/metal node power-onnot-a-command
metal: excess arguments for command 'node'

Usage:

  SYNOPSIS:

    metal node

  DESCRIPTION:

    View, configure, or manage a node resource

  SUBCOMMANDS:

    node build        Run the pxelinux build server    
    node create       Add a new node to the cluster    
    node delete       Remove the node and associated configurations    
    node edit         Open a managed node file in the editor    
    node ipmi         Run the node ipmi script    
    node list         List all the nodes within the cluster    
    node power-off    Run the node power-off script    
    node power-on     Run the node power-on script    
    node power-status Run the node power-status script    
    node render       Render the template against the node parameters    
    node show         View the node state and configuration    
    node update       Modify the node's parameters  

[root@forgiemodo flight-metal]# bin/metal node power-on----not-a-command
Skipping power-on----not-a-command: The power-on file can not be found: /host/flight-metal/var/clusters/foo/var/nodes/power-on----not-a-command/libexec/power/on.sh
Updated 15/08/2019 17:20

Missing menu border

thepracticaldev/dev.to

<!– Before creating a bug report, try disabling browser extensions to see if the bug is still present. –>

<!– If you’re having trouble updating your profile, it is likely because you logged in separately with GitHub & Twitter. Please check if this is the case before creating a bug report, and email yo@dev.to so we can merge your accounts. –>

Describe the bug

Menu in night theme looks like it has a missing border to it’s right. It works correctly in mobile, tablets and low resolution screen scenario where the menu hugs the top-right corner and hence border being cut-off is consistent with the other themes, but looks bad on a desktop where it is abruptly cut-off.

A similar issue is also present in pink, but it only becomes clearly visible when you click on the menu, which probably most won’t do unless they are using a touchscreen device. All themes do have an inconsistent border-radius though… which again isn’t that easily visible unless you actually click. <!– A clear and concise description of what the bug is. –>

To Reproduce

<!– Steps to reproduce the behavior: –> 1. Go to dev.to 2. Log into the website. (Not sure whether we can switch to dark theme without logging in) 3. Click on your profile picture to open menu.

<!– 1. Go to ‘…’ –> <!– 2. Click on ‘….’ –> <!– 3. Scroll down to ‘….’ –> <!– 4. See error –>

Expected behavior

<!– A clear and concise description of what you expected to happen. –> The white border consistently travels from top-left -> bottom -> top-right while having rounded bottom corners.

Screenshots

<!– If applicable, add screenshots to help explain your problem. –> - night theme test

  • default theme image

  • pink theme test2

  • minimal while theme image

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version: 76.0.3809.100

Smartphone (please complete the following information):

  • Device: Nokia 6.1
  • OS: Android 9
  • Browser: Chrome
  • Version: 76.0.3809

Additional context

<!– Add any other context about the problem or helpful links here. –>

Updated 15/08/2019 21:42 3 Comments

Cannot integrate Charts to VueJS SPA (babel/webpack)

tradingview/charting-library-examples

In examples for VueJS using ‘@vue/cli’, it all works fine, but with babel/webpack (with my project integration), I have got some problems with imports.

Our vue.js project doesn’t use the ‘/public’ folder, as it does in the vue.js tradingview examples. So, instead of putting the files and folders into ‘/public’ I place them into ‘/static’ folder instead , and also changing the script imports.

I cannot find imports for ‘/public/charting_library’ folder, but I suppose this imports may be hardcoded in lib code?

First error I got: “export ‘widget’ was not found in ‘./charting_library/charting_library.min”

I solved it by adding:

[“transform-es2015-modules-commonjs”, { “allowTopLevelThis”: true }],

to babel plugins in .babelrc

Other problems after fixes:

Uncaught SyntaxError: Unexpected token < polyfills.js:1 Uncaught SyntaxError: Unexpected token < bundle.js:1 Uncaught (in promise) TypeError: t._innerWindow(…).widgetReady is not a function at eval (charting_library.min.js?4897:1) charting_library.min.js?4897:1

Thanks for any help.

TLDR; the vue.js examples use vue-cli to run the (npm run serve) command. But, we are using webpack and can’t integrate the charting library due to issues. Is the “/public” folder hardcoded, or can this be configured in a configuration file, say to use a different folder, such as “/static” instead.

Updated 16/08/2019 08:06

Can't set config using period in key

rails/webpacker

Basically I’m trying to set some config like this: environment.config.set('externals.bignumber.js', 'BigNumber'); Which obviously doesn’t work because it splits the path on the “.”

I think a good solution (and the one implemented by https://www.npmjs.com/package/object-path) would be to modify deep_assign (and related utils) to allow this syntax: environment.config.set(['externals', 'bignumber.js'], 'BigNumber');

Updated 15/08/2019 19:30

Check for a passphrase prompt

riboseinc/rspec-pgp_matchers

https://github.com/riboseinc/rspec-pgp_matchers/blob/89a02228550fef73ea378b39827dd8fd84624d05/lib/rspec/pgp_matchers/gpg_runner.rb#L16

Is this method checking for a passphrase prompt? I’m trying to implement this gem, but it’s failing to recognize a legitimate PGP message. I’m wondering if it’s because my CLI is prompting me to enter a passphrase, and that doesn’t match this checker. Thanks for clarification.

Screen Shot 2019-08-14 at 10 29 21 AM

Updated 15/08/2019 04:08 1 Comments

Using an additional single quote in Liquid var causes process get stuck

huginn/huginn

Monkey-patch added here broke liquid template parse.

Example: string = { "a": { "type": "text", "value": "{{ data['I'm using another single quote'] }}" }, "b": { "type": "text", "value": "{{ data['some text'] }}" } }.to_json Liquid::Template.parse(string) or: string = { "a": { "type": "text", "value": "{{ data['I\'m using another single quote'] }}" }, "b": { "type": "text", "value": "{{ data['some text'] }}" } }.to_json Liquid::Template.parse(string)

ref: https://github.com/Shopify/liquid/issues/1110

Updated 16/08/2019 21:08 1 Comments

try these tools

leoniv/hello_ror

https://github.com/sorbet/sorbet - type checker and LSP https://github.com/shinglyu/vim-codespell - vim spell checker https://github.com/apiaryio/dredd - http API testing framework https://apiblueprint.org/ - http API IDL

Updated 14/08/2019 02:12

Would it be possible to add something in the README about the difference between large heap and non-large heap binaries? I'm a little confused about whether this issue effects anything besides launching Eclipse.

AdoptOpenJDK/homebrew-openjdk

Would it be possible to add something in the README about the difference between large heap and non-large heap binaries? I’m a little confused about whether this issue effects anything besides launching Eclipse.

Originally posted by @timgilbert in https://github.com/AdoptOpenJDK/homebrew-openjdk/issues/87#issuecomment-520961331

Updated 13/08/2019 21:41

DHCP v6 Support

sous-chefs/dhcp

:speaking_head: Foreword

This is more of a RFC rather than a feature request as such as I’d plan on implementing the functionality myself but wanted to get a consensus on how to proceed first before starting as it will be a fair amount of work.

:person_frowning: Problem Statement

There is no support for managing an ISC DHCPv6 server.

:grey_question: Possible Solution

Add the functionality to this cookbook

A lot of the current resources and recipes have v6 analogies and the server is ran by the same executable with the -6 flag so it would make some sense in this manner to add the functionality to this cookbook.

:arrow_heading_up: Describe alternatives you’ve considered

Create a new cookbook

If it is felt that it would be out-of-scope to add DHCPv6 support to this cookbook I’d look to create a new one instead.

:heavy_plus_sign: Additional context

Add any other context about the problem here. e.g. related issues or existing pull requests.

Updated 14/08/2019 13:16 1 Comments

Ability to filter search results on mobile

thepracticaldev/dev.to

Describe the solution you’d like

Can we please have the ability to filter search results on mobile the same way we do on desktop. This could potentially be hidden away when not in use the same way the ‘reading list’ when on the Home page.

Describe alternatives you’ve considered

Tested on ios and android but doesn’t appear to be available on either

Additional context

<img width=“414” alt=“aws1” src=“https://user-images.githubusercontent.com/17949635/62851942-f739ef00-bd3b-11e9-89d0-b3204b9682ba.PNG”>

How do I search only my own posts?

Updated 12/08/2019 19:48 1 Comments

Migrations fail to run on test database

tongueroo/jets

<!– Hi! Thanks for considering to file a bug with Jets. Please take the time to answer the basic questions. Please try to be as detailed as possible. To be sensitive to everyone’s time, if not enough details are provided, the issue may be closed without comment. If you repeatedly fail to provide enough details, you may be blocked from ever submitting issues to Jets again. Please use your best judgment. 👍

If you are unsure this is a bug in Jets, please consider asking your question at: https://community.rubyonjets.com

Thanks! –>

Checklist

<!– Make sure that you’ve done all of these. To mark a checkbox done, replace [ ] with [x]. Or after you create the issue you can click the checkbox. –>

  • [x] Upgrade Jets: Are you using the latest version of Jets? This allows Jets to fix issues fast. There’s a jets upgrade command that makes this a simple task. There’s also an Upgrading Guide: http://rubyonjets.com/docs/upgrading/
  • [x] Reproducibility: Are you reporting a bug others will be able to reproduce and not asking a question. If you’re unsure or want to ask a question, do so on https://community.rubyonjets.com
  • [x] Code sample: Have you put together a code sample to reproduce the issue and make it available? Code samples help speed up fixes dramatically. If it’s an easily reproducible issue, then code samples are not needed. If you’re unsure, please include a code sample.

My Environment

<!– Please fill out the table below with debugging info to help: –>

Software Version
Operating System MacOS Mojave 10.14.6
Jets 2.0.3
Ruby 2.5.3

Expected Behaviour

<!– What is it you expected to happen? This should be a description of how the functionality you tried to use is supposed to work. Try to keep this to one-paragraph. –> When I create a migration and run jets db:migrate (no JETS_ENV or JETS_ENV_REMOTE specified), I expect the migration to be applied to the local development and test databases.

Current Behavior

<!– Describe the details of the bug. Try to keep this to one-paragraph. –>

When I create a migration and run jets db:migrate (no JETS_ENV or JETS_ENV_REMOTE specified), the migration is applied to the local development database only.

Step-by-step reproduction instructions

<!– Be sure to include any steps you took for the problem to exist. This is likely the longest part of the report.

Please include any logs you think relevant here. If the logs are long (more than 50 lines) please make a gist of the logs and link to it. https://gist.github.com

With long logs, you can also use the <details> tag to keep the report readable. Example:

<details> <summary>Summary Goes Here</summary>

…this is hidden, collapsable content. start with a blank to get terminal output to format right… </details> –>

Create a demo application: 1. jets new demo 2. cd demo. 3. jets generate scaffold post title:string 4. jets db:create. 5. jets db:migrate.

Write a test that touches the posts table. I wrote a controller test for this example: describe PostsController, type: :controller do it "index returns a success response" do get '/posts' expect(response.status).to eq 200 end end

Running this test, I get the following error: ActionView::Template::Error: Mysql2::Error: Table 'demo_test.posts' doesn't exist: SELECT `posts`.* FROM `posts`

Now I run the migration again specifying the test environment: JETS_ENV=test jets db:migrate.

Upon running the test again, the test passes because the posts table now exists.

Code Sample

<!– Please provide a code repository, gist, code snippet or sample files to reproduce the issue. –> Clone this sample application and follow the reproduction steps in the README.

Updated 14/08/2019 06:38 1 Comments

Upgrade style-loader to 1.0.0?

rails/webpacker

Hello,

Non-JavaScript person here. On a fresh Rails 6.0.0.rc2 install with webpacker 4.0.7 source maps in Firefox don’t work. This is the error, that I get:

Screenshot 2019-08-11 17 22 12

I’ve found several issues both in style-loader’s and Firefox' issue trackers:

https://github.com/webpack-contrib/style-loader/issues/303 https://bugzilla.mozilla.org/show_bug.cgi?id=1451274 https://bugzilla.mozilla.org/show_bug.cgi?id=1543896

According to the Changelog for version 1 of style-loader, the problems with the source maps in Firefox have been fixed:

https://github.com/webpack-contrib/style-loader/pull/383

Would a PR for upgrading the style-loader to 1.0.0 be accepted? As I’m not very experienced with webpack and webpacker, I’m not completely sure how hard that would be, however I think a major implication would be, that the minimum version for Node would have to be bumped to 8.9.0, as the style-loader now requires 8.9.0.

Updated 15/08/2019 20:10 3 Comments

Chat - Send Email Summary When Idle

thepracticaldev/dev.to

Is your feature request related to a problem? Please describe.

When I’m away someone might message me but I won’t know until the next time I log into DEV.to

Describe the solution you’d like

  • [ ] When the user is inactive and they have unread chat messages, deliver a summarized email of unread chat messages

Describe alternatives you’ve considered

<!– A clear and concise description of any alternative solutions or features you’ve considered. –>

Additional context

<!– Add any other context or screenshots about the feature request here. –>

Updated 12/08/2019 21:32 1 Comments

Chat - Be able to load previous chat history

thepracticaldev/dev.to

Is your feature request related to a problem? Please describe.

When using the chat history there is a limit on the shown messages. So when I scroll back to get information such as contact details I can no longer access it.

Describe the solution you’d like

  • [ ] A button that loads the last 100 messages or load 100 more messages on infinite scroll

Describe alternatives you’ve considered

<!– A clear and concise description of any alternative solutions or features you’ve considered. –>

Additional context

<!– Add any other context or screenshots about the feature request here. –>

Updated 17/08/2019 17:29 3 Comments

Chat - Push Notifications To Chrome Browser

thepracticaldev/dev.to

Is your feature request related to a problem? Please describe.

Modern Browsers allow you to push notifications so you can see activity on a website with chat functionality.

Describe the solution you’d like

  • [ ] When someone messages me in Chat it pushes notification to the browser’s Notification functionality

Describe alternatives you’ve considered

<!– A clear and concise description of any alternative solutions or features you’ve considered. –>

Additional context

<!– Add any other context or screenshots about the feature request here. –>

Updated 12/08/2019 21:35 1 Comments

Chat - Sound Effect When Messaging

thepracticaldev/dev.to

Is your feature request related to a problem? Please describe.

When someone messages I have to manually check chat which causes a delay in conversation.

Describe the solution you’d like

  • [ ] When someone notifies me I should hear a sound.
  • [ ] I should have a toggle to globally turn on and off notification sounds

Describe alternatives you’ve considered

<!– A clear and concise description of any alternative solutions or features you’ve considered. –>

Additional context

<!– Add any other context or screenshots about the feature request here. –>

Updated 12/08/2019 21:37 1 Comments

Archive replacement posts.

zwagoth/e621ng

Archive replacement posts and put them in secure storage so that they can be reviewed later on, and potentially undone.

It APPEARS that the files are orphaned and queued for deletion in 24 hours based on the current code flow, and there is no support surrounding undoing a replacement. Need to come up with UI enhancements surrounding replacement functions as well.

Updated 10/08/2019 14:39

Issues Around Making Tags Aliases For One Another

thepracticaldev/dev.to

@michael-tharrington commented on Wed Jul 03 2019

Describe the bug

After making the tag emberjs an alias for ember, some of the posts that were tagged with emberjs (e.g. - this one) have disappeared from the ember tag page - (see https://dev.to/t/ember/top/infinity)

Expected behavior

When tag x is made an alias for tag y, x’s posts should all be visible on dev.to/t/y

Additional context

I was working with the new tag mod for ember who noticed the inconsistencies after we made emberjs an alias for ember. Chris suggested making ember the dominant tag name after speaking with the Ember Steering Committee.

Updated 13/08/2019 09:35 5 Comments

Make processes asynchronous

publiclab/plots2

Many services such as marking node as spam or approving them can be done asynchronously. Create worker for all such services. So, these activities do not use main thread resources. Also, for each such conversion make changes to the frontend i.e., AJAXify the view so that effect of the action can be shown to the user at that time only.

Services which can utilize this: 1. Spam moderation 2. Notification calls 3.

Updated 11/08/2019 06:50 4 Comments

Add notification info to DEV docs!

thepracticaldev/dev.to

Description

Would be awesome if someone could add this documentation on how to trigger notifications in development for docs.dev.to – here’s the text, feel free to add more info:

Basically, since notifications are run asynchronously, we’ll want to make sure jobs are running: rake jobs:work. If that’s not running, you won’t receive any notifications. You might need to create another account to pass notifications back and forth if you’re doing this all through the UI.

Otherwise, you can generate notficiations from the rails console and run the class methods from notification.rb. For example:

# follow notification
me = User.last
follow = User.first.follow(me)
Notification.send_new_follower_notification_without_delay(follow)

# reaction notification
rxn = Reaction.create(
  user_id: 1,
  category: "like",
  reactable: me.articles.last, # this assumes you have an article written
)
Notification.send_reaction_notification_without_delay(rxn, me)

Notice you have to run these methods without_delay, since this is assuming jobs are not running.

Here’s the contributing guideline for docs: https://docs.dev.to/contributing/

This should be a new markdown file under Backend Guide!

Updated 17/08/2019 18:06

Locally-cached draft supercedes more recent drafts from other devices

thepracticaldev/dev.to

Description

When working on a draft, locally-cached changes can fall out of sync if a user makes edits from a different device. I’m unsure if the issue is present when working through the API, but it would most likely depend on how the client handles refreshing its cache.

To Reproduce

  1. Begin a new post on the dev.to website and add some content
  2. Click/tap save draft
  3. Close the browser, go have a coffee or something
  4. Open the draft within dev.to on another device and make some changes, possibly while drinking your coffee
  5. Click/tap save draft
  6. Return to dev.to on the first device
  7. From your dashboard, click/tap edit

Expected behavior

Changes made on the second device should appear within textarea.articleform__body.

Actual behavior

textarea.articleform__body retains the earlier version of the post content.

Desktop (please complete the following information): no u

Smartphone (please complete the following information): still not a fan of this idea

Additional Context

  • This bug can erase a good amount of work if the user has substantially updated the draft from device no. 2, then makes a change back on device no. 1
  • The rendered version of the draft will reflect the most recent updates, only the edit page is affected
  • Clearing the cache for dev.to within the browser, logging back in, and then navigating back to the edit page will fetch the latest version of the plaintext
Updated 09/08/2019 21:06 4 Comments

API: Return properties regarding series in GET request data

thepracticaldev/dev.to

Is your feature request related to a problem? Please describe.

When creating articles using the API, it’s possible to assign the article to a series. However, when querying for articles from the API, no information regarding series is made available in either the objects returned /api/articles/?=${queryString} or the data returned from /api/articles/${id}.

Describe the solution you’d like

Ideally, a series property would be returned along with the rest of the data for each article from either endpoint with the title or some other identifier of the series to which the article belongs.

Describe alternatives you’ve considered

Additional context

<!– Add any other context or screenshots about the feature request here. –>

Updated 13/08/2019 14:07 1 Comments

Add Rake task to auto-send ActiveRecordProducer events

flipp-oss/deimos

Currently, our workflow is that we send events on callbacks. This works for most situations, but for codebases that need to make heavy use of import / insert_all / update_all, it becomes tricky and cumbersome to remember to send events every time.

For these use cases, a better pattern is to implement a separate task which polls the relevant tables and sends events for records whose updated_at column is recent. This ensures that no changes are missed, and also has the advantage of batching all updates at once.

Downside of this pattern is that there may be many events being sent unnecessarily (if columns the producer doesn’t care about are changed) as well as more, possibly significant DB reads. It also introduces at least some delay between when the DB is updated and when Kafka is notified.

Another downside is that it can’t handle deletes. There is unfortunately no easy workaround for this. App code can use a combination of KafkaSource (for deletes only) and this pattern.

This feature should add another table, e.g. kafka_source_updates to store the most recently seen updated_at column. The Rake task should use an Executor to continually poll the database and use ActiveRecordProducer to send relevant events. There should be some overlap (1 second? 5 seconds?) between the most recently seen updated_at and the first updated_at it searches for.

Updated 09/08/2019 17:15

"About DEV Listings" Button Color - Pink Theme

thepracticaldev/dev.to

<!– Before creating a bug report, try disabling browser extensions to see if the bug is still present. –>

<!– If you’re having trouble updating your profile, it is likely because you logged in separately with GitHub & Twitter. Please check if this is the case before creating a bug report, and email yo@dev.to so we can merge your accounts. –>

Describe the bug It’s very hard to see the button on pink mode.

To Reproduce Visit any listings link: try this example - https://dev.to/listings/collabs/contributors-wanted-sample-programs-in-every-language-281c

Expected behavior

Add a color to the button to make it read easier, account for all themes. Theming docs: https://docs.dev.to/design/theming/

Screenshots

Updated 13/08/2019 12:45 6 Comments

draft box checked, "publish" showed up instead of "save"

publiclab/plots2

Hello! I haven’t been able to recreate this issue, so I’m not sure what the bug really is, but I was trying to save a draft research note to come back to later, I had the draft box checked, but instead of seeing “save” I saw “Publish.” Clicking and unclicking “save as draft” didn’t change the button. Then, just to test it out, I clicked “publish” and even though the “save as draft” button was checked, it published my Research Note.

I deleted that note, and tried to recreate the bug but was unable to do so. No worries, on dealing with this, just wanted to share it out in case anyone else runs into this!

Updated 09/08/2019 20:58 5 Comments

Add a optional field to infrastructure/network/config instances that allows you to provide a regex search strings

RedHatOfficial/miq-Utilities

Currently, the name of the instance is used when looking for suitable networks in the network dialog code. This is not ideal, because the name of the instance is used in multiple places for multiple purposes ( i.e the satellite registration code ).

Separating the regex search into it’s own attribute would allow the Network Config instance to be more flexible and possibly reduce redundant network config objects.

Looks like, at a minimum, you’d need to update the dialog code and the set_network code to use this. We could always fall back to the name of the config instance if the regex search string is not provided.

Updated 09/08/2019 13:36

Sharing draft requires login

publiclab/plots2

<!– Please fill out as much of the template as you can –>

<!– Start below this comment. –> Hello! I was recently working with @ebarry on a post with a community partner. That community partner doesn’t have a Public Lab login yet. We’re hoping she will at some point in the future, but in the meantime, we were hoping to be able to share a post with her so she could see it before it was published (in case there were any edits or additions she wanted to make).

Please describe the desired behavior. I am wondering if we can change the way people interact with drafts so that if I send a link to a draft out to someone without a Public Lab login, they can still see it.

Updated 16/08/2019 16:58 5 Comments

Prawn Unable to Print Non Utf-8 Characters

rubyforgood/diaper

A diaper bank in Hawaii reported they were unable to print invoices and when we looked into the issue it is because their partner’s name has non utf-8 characters in it. We need to figure out how to enable their printing.

For testing, here is the partners name: KOKA Keiki O Ka ‘Āina

Updated 09/08/2019 03:43

Ability to pin/unpin my posts in dashboard

thepracticaldev/dev.to

Is your feature request related to a problem? Please describe. If I want to pin/unpin any post of mine, there is only one way to do it i.e. by clicking on the manage post and then pin/unpin.

Describe the solution you’d like If we can have pin/unpin button directly on the list presented in the dashboard then it would be very easy for me to get this work.

Describe alternatives you’ve considered None

Additional context None

Updated 08/08/2019 16:05 1 Comments

Access to Database

earaujoassis/sequel-seed

Hello! First off, thanks for putting this together. Very cool.

I am working on a brand new rails 6 rc2 api and I have replaced ActiveRecord with Sequel. For this first project I am trying to not use any models. For example, this is what I have in a seed:

def run
    plan_id = IdUtils.new_id
    db = DatabaseUtils.db_connection
    db[:plans].insert(id: plan_id, name: 'testing')
end

I am wondering if I have access to the database within your framework, vs going out to my db utils module.

Thanks again!

Updated 15/08/2019 01:09 3 Comments

Question: do limits not apply to records with more than X log_data entries?

palkan/logidze

Looking at the migration that is generated, it looks like row collapsing only occurs when the number of log entries exactly matches the set row limit.

For example, if a limit of 30 is set, any record that has less than 30 log_data entries would work as expected; however, if a record already has 31+ entries, it would not collapse future entries and instead continues to add new entries as if there were no limit.

Is this a good enhancement opportunity?

Updated 15/08/2019 15:23 1 Comments

Неконсистентные стили для текста описания мероприятия

IT61/it61.info

Стили для текста довольно странно себя ведут. Ненумерованные списки (а возможно, что и нумерованные тоже) отображаются другим размером и, кажется, даже шрифтом, если сравнивать их с оформлением абзацев. Отступы между элементами текста (между абзацем и списком, между элементами списка, между абзацами) тоже выглядят неконсистентно.

Updated 12/08/2019 14:28

Markdown not rendering backticks correctly

thepracticaldev/dev.to

Describe the bug

There seems to be an issue with displaying backtick literals in code blocks.

I’m writing a blog post with markdown tips so naturally I would like to include examples that inclde backticks and none of the recommended ways of displaying backticks seem to work.

I tried following the recommendations provided here and here, but I can’t get the behavior they are describing.

Specifically, trying to render three backticks in inline code seems to be broken: Something like: (`` ``` ``) I would expect to render like: Something like (```) but in the DEV editor it comes out like: Something like ( `).

Similarly when trying to display three backticks insode a code block things break down.

The following markdown: ```` ``` //some code goes here ``` ```` I’d expect to render like:

```
//some code goes here
```

But instead it renders on DEV like: //some code goes here

To Reproduce Open the new post editor (I tried it both in v2 and v1 of the editor) and paste in the markdown examples I provided above.

Press “Preview”.

Expected behavior

I expect the markdown to display per the specifications mentioned above with the backticks rendering as expected.

Desktop (please complete the following information):

  • OS: Ubuntu
  • Browser: Firefox
  • Version: 68.0.1

Additional context

It seems like an issue was already opened for this (https://github.com/thepracticaldev/dev.to/issues/1284). The last comment there seems to indicate that the issue was fixed, but I’m still encountering it now. I don’t know if tis is a regression or perhaps my examples are a bit different than the one they provided.

Updated 16/08/2019 18:44 2 Comments

File.open should accept :newline keyword for text mode

jruby/jruby

Yanked out of #5118

Ruby 2.5 added the ability to specify that a file should be opened in text mode by passing the newline: true keyword argument to File.open. We have never added this feature. It probably only needs a bit of work to intercept the keyword argument and set the appropriate bits, like we do when processing file modes like “rt”.

Updated 06/08/2019 20:39

IO#pread and pwrite missing

jruby/jruby

This is yanked out of #5118

Ruby 2.5 added pread and pwrite, which allow reading and writing without advancing the file position. We have never added these. May be easy, I have not looked into it.

Updated 15/08/2019 00:38 4 Comments

Unable to duplicate scripts on one store "Failed to duplicate the script" error message

Shopify/shopify-scripts

Problem

Unable to duplicate scripts on store, getting “Failed to duplicate the script” error message. Showing 422 error in Console

Scope

One store

Examples

Expected vs Actual

EB: Duplicating a script will create a duplicate

AB: Duplicating a script will result in an error message & 422 error

Replication Steps

  • Go to example script
  • Click Duplicate
  • See Failed to duplicate the script; refresh or try agin later message

More Information

  • Splunk Logs show 422 error but not much else from what I can see

Error shows for every script I tested on the merchants store I can’t replicate the error on my test store with existing scripts or when I copy the merchants script over to my store

Zendesk Ticket @Shopify/scripts

Updated 06/08/2019 17:57 3 Comments

Optimize uploaded GIFs

thepracticaldev/dev.to

Is your feature request related to a problem? Please describe.

<!– A clear and concise description of what the problem is. Ex. I’m always frustrated when […] –>

Uploaded GIFs for use in articles are not optimized and therefore can be very large and slow for users to download.

Describe the solution you’d like

<!– A clear and concise description of what you want to happen. –>

Since dev.to is using Cloudinary for its assets, there is the opportunity to easily apply lossy compression to GIFs to reduce GIF file sizes by 20-50% (without too large a hit on quality): https://cloudinary.com/blog/lossy_compression_for_optimizing_animated_gifs

If quality should not be sacrificed, then there is also the possibility to use the HTML5 <video> element and display GIFs as automatically looping videos. Fortunately, Cloudinary also allows GIF assets to be requests as videos where Cloudinary will convert the .gif file to a .mp4 (or any other supported video format): https://cloudinary.com/blog/reduce_size_of_animated_gifs_automatically_convert_to_webm_and_mp4

Twitter actually converts all their GIFs to mp4 files and this helps reduce the GIF size by around 95%!

This may be difficult to implement considering the markdown asset would need to be converted to an HTML <video> element. Also, browser support will need to be considered to make sure autolooping videos work everywhere.

Additional context

When running performance audits with Lighthouse, the audits usually point towards the following resource when suggesting ways to optimize GIF assets: https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/replace-animated-gifs-with-video/

I’ve also recently written a blog post regarding the switch of GIFs to videos and also analyze dev.to’s implementation of GIFs in the article: https://www.robertcooper.me/stop-using-gifs

Updated 13/08/2019 13:36

When we change theme, we have to refresh the page to update

thepracticaldev/dev.to

Describe the bug

When we go to settings and change the theme options and save it, we have to refresh the page so the changes can take place.

To Reproduce

Go to settings -> change the theme and save

Expected behavior

When we save and the page get refreshed, it should already update your preferences

Desktop (please complete the following information):

  • OS: Mac OS
  • Browser: Chrome
  • Version: 75.0
Updated 06/08/2019 12:21 1 Comments

Make Onboarding Compatible With All Themes

thepracticaldev/dev.to

Describe the bug Visiting the onboarding page while logged in and the dark theme makes it unreadable because the text is white on white background

To Reproduce 1. Login with a user with dark theme 2. Go to https://dev.to/onboarding

Expected behaviour

text is still black

Screenshots

<img width=“1145” alt=“Screenshot 2019-08-02 at 12 28 41” src=“https://user-images.githubusercontent.com/432450/62367363-5704ee80-b521-11e9-8fdd-1c95a61b860a.png”>

Desktop (please complete the following information):

  • OS: Mac os
  • Browser: Firefox
  • Version: 68.0.1
Updated 17/08/2019 18:15 5 Comments

Image upload jumps to the top of the editor

thepracticaldev/dev.to

Describe the bug When you add an image using the image upload feature at the bottom left of the editor, it will cause the editor to scroll all the way back to the top of the page.

To Reproduce

<!– Steps to reproduce the behavior: –>

  • Go to one of your articles and go into the editor. This works best with articles that are long enough to cause Y overflow.

  • Click on the ‘Image’ button.

  • When the image upload modal pops up, you dont have to upload an image and just select ‘done’

  • After you select ‘done’ you will now be at the very top of the page.

Expected behavior

After finishing uploading an image using the above described method, it should keep you at the place you left off in the editor instead of scrolling all the way to the top of the page.

Screenshots

<!– If applicable, add screenshots to help explain your problem. –>

Desktop (please complete the following information):

  • OS: Mojave
  • Browser: Chrome & Safari
  • Version: 75.0 & 12.1.1

Additional context

Just to add reasons why I think this should be addressed, i was editing a rather long article and posting photos as I went and every time I upload a photo I would have to scroll all the way back down to where I left off writing.

Updated 06/08/2019 12:20

Comment Deletion Bug : Comment Listing appears in Recent Comment

thepracticaldev/dev.to

Describe the bug

When you delete the comment made on post. The comment still appears in recent comment list in the Profile page. Here I have noticed I managed to get back to the deleted comments 3 times and had to delete the comment manually same steps 3 times. And 4th time the comment got deleted. And now clicking on that “Recent comments” entry for deleted comment takes me to error page (as expected).

So the bug is comment entry appearing in Recent Comments table on Profile page.

To Reproduce

Steps to reproduce the bug.

  1. Go to any article.
  2. Make a comment.
  3. Submit the comment.
  4. Refresh the page or come back to it later.
  5. Delete the comment.
  6. Go to Profile page and check Recent comments table.

Expected behavior

After the deletion of comment, the entry should not appear in the Recent Comments table on profile page. Also after deletion the comment should not be accessible which in some cases was accessible through recent comments table entry.

Screenshots

Image of Bug

Desktop

  • OS: Windows 7
  • Browser: Chrome
  • Version: 75.0.3

Behavior appears same on Windows 10 and Firefox profile.

Updated 14/08/2019 14:12 4 Comments

Make `brew bump-formula-pr` behave more usefully on Homebrew on Linux

Homebrew/brew

A detailed description of the proposed feature

​ For Homebrew formulae, there’s a command that encourages users to contribute version bumps for formulae they use: brew bump-formula-pr. ​ This works great in Homebrew/homebrew-core for macOS, but not so great in Homebrew/linuxbrew-core as the version bump mechanism for the majority of Homebrew on Linux formulae is via merges from the macOS repo into the Linux repo, roughly once per day, done by maintainers. ​ Currently, Homebrew on Linux users who employ brew bump-formula-pr as their tool of choice raise their formulae PRs against Homebrew/linuxbrew-core as that’s the default tap on Linux. This is a bad user experience, as users who try to be helpful end up with their pull-request closed by maintainers, because they’ve unknowingly submitted it to the wrong repo.

If the tap’s remote is Homebrew/linuxbrew-core, brew bump-formula-pr could somehow: ​ - Check that the formula that a user is trying to update exists in Homebrew/homebrew-core, then either:​ - Raise the version bump PR against Homebrew/homebrew-core instead of Homebrew/linuxbrew-core - Signpost users towards Homebrew/homebrew-core with some text explaining why - Some other solution - feedback and ideas welcome! ​

The motivation for the feature

Currently, users who submit formulae updates are redirected by maintainers to submit their changes to Homebrew/homebrew-core in most cases, or they realise that themselves. This takes up maintainers' time. It’s also potentially discouraging for the submitter, because their PR is closed through no fault of their own.

The tools that we advertise as being good entry points for contributing should work according to our workflows, across both macOS and Linux.

Evidence:

  • https://github.com/Homebrew/linuxbrew-core/pull/14541 (a user needed signposting)
  • https://github.com/Homebrew/linuxbrew-core/pull/14280 (a user realised themselves)
  • https://github.com/Homebrew/linuxbrew-core/pull/14599 (a dummy test)

How the feature would be relevant to at least 90% of Homebrew users

​ A lot of users update formulae with brew bump-formula-pr in Homebrew/homebrew-core, and as Homebrew on Linux gains more users, we’ll run into this problem more and more. ​

What alternatives to the feature have been considered

​ - Maintainers signposting users manually, as we have been doing. But that takes up time that could be used elsewhere. - Not allowing users to brew bump-formula-pr while running Homebrew on Linux. This has the side effect of discouraging initial contributions from users, decreasing the likelihood that they will get more involved in the future.

Updated 07/08/2019 17:55 3 Comments

Styling on rendered podcast liquid tags when browsing in light mode

thepracticaldev/dev.to

Describe the bug

When a post uses the podcast liquid tag:

{% podcast url-for-episode-here %}

and it is viewed in light mode (i.e. dark mode is disabled), the styling on the rendered podcast component means that the component cannot be seen - white text on a white background. Please see the Screenshots section for a visual on this issue.

To Reproduce

  1. Ensure that you are using dev.to in light mode
  2. Open the following url in a chrome-based browser or Firefox: https://dev.to/dotnetcoreblog/the-net-core-podcast-episode-30-reflections-on-net-with-pablo-santos-and-phil-haack-257e
  3. Scroll down to the rendered podcast liquid tag; it will be displayed with white text on a white background
  4. Swap to dark mode for dev.to
  5. Refresh the page (may not be necessary)
  6. Scroll down to the rendered podcast liquid tag; it will be displayed with white text on a dark background.

Alternate steps to reproduce

  1. Create a dev.to article which contains a podcast liquid tag similar to the following: {% podcast https://dev.to/dotnetcorepodcast/reflections-on-net-with-pablo-santos-and-phil-haack %}
  2. Preview the post in light mode; the podcast liquid tag will be rendered as white text on a white background
  3. Preview the post in dark mode; the podcast liquid tag will be rendered as white text on a dark background.

Expected behavior

The rendered podcast liquid tag-based component does not have white text on a dark background when the page is viewed in light mode. There should be sufficient contrast such that the text and controls are easy to see and interact with.

The fix should not affect behaviour in dark mode.

Screenshots

In light mode: styling on podcast liquid tags light mode

the same component, when viewed in dark mode: styling on podcast liquid tags dark mode Desktop:

  • OS: Pop!Os 19.04
  • Browser: Brave & Firefox
  • Version: Brave 0.66.101 - Chromium 75.0.3770.142 (Official Build) (64-bit); Firefox 68.01

Output from lsb_release -a:

Distributor ID: Ubuntu
Description:    Pop!_OS 19.04
Release:    19.04
Codename:   disco
Updated 02/08/2019 21:56 1 Comments

Organization comments and posts

thepracticaldev/dev.to

Describe the bug Despite being in two different URL’s, the behaviour is exactly the same, in contrast with individual accounts.

<!– A clear and concise description of what the bug is. –>

To Reproduce

Create an organisation and go your notifications page. You can select “All” which will generate a URL like this https://dev.to/notifications/org/984, and if you select just the “comments”, it will select a URL like https://dev.to/notifications/comments/984 but nothing different will happen.

Expected behavior It mimics individual account behaviours at the url of https://dev.to/notifications and https://dev.to/notifications/comments

Screenshots

Screen Shot 2019-07-30 at 21 07 23

Updated 05/08/2019 09:25 6 Comments

Duplicate notifications

thepracticaldev/dev.to

<!– Before creating a bug report, try disabling browser extensions to see if the bug is still present. –>

<!– If you’re having trouble updating your profile, it is likely because you logged in separately with GitHub & Twitter. Please check if this is the case before creating a bug report, and email yo@dev.to so we can merge your accounts. –>

Describe the bug

When someone tags me in a comment while replying to me, I get notified twice.

<!– A clear and concise description of what the bug is. –>

To Reproduce It occurs in this url, https://dev.to/notifications/comments see image below

<!– Steps to reproduce the behavior: –>

<!– 1. Go to ‘…’ –> <!– 2. Click on ‘….’ –> <!– 3. Scroll down to ‘….’ –> <!– 4. See error –>

Expected behavior Should be one notification

<!– A clear and concise description of what you expected to happen. –>

Screenshots

Screen Shot 2019-07-30 at 20 56 57

<!– If applicable, add screenshots to help explain your problem. –>

Desktop (please complete the following information):

  • OS: Mac OS
  • Browser: Chrome
Updated 17/08/2019 18:07 2 Comments

Add ability to configure '/etc/libvirt/libvirtd.conf'

cirrax/puppet-libvirt

To my understanding it’s not yet possible to configure values in /etc/libvirt/libvirtd.conf. File format looks a lot like qemu.conf: https://github.com/libvirt/libvirt/blob/master/src/remote/libvirtd.conf

I guess, adding the ability to configure /etc/libvirt/libvirtd.conf should be analogue to qemu_conf. If I didn’t miss something crucial here, I might be able to come up with a PR in the next days.

Updated 06/08/2019 12:27 3 Comments

Slet linje 1620 i koden

mtolbol/sharetribe

Under “Inviter ven” ønsker vi at slette den 2. rubrik: “add_lots_of_email_addresses: "Hvis du planlægger at sende mange invitationer, skal du bruge et e-mail værktøj. Tjek %{this_article_link} for at finde informationer omkring egnede e-mail tjenester.”

Som har linje 1620 i koden.

Jeg er usikker på hvorvidt vi bare kan slette denne linje, eller om du skaber nogle issues. I så fald må den gerne slettes.

Skærmbillede 2019-07-30 kl  16 55 21

Updated 30/07/2019 14:58

Telegram Agent set to 'split' for 'long_message' does not work for media without captions

huginn/huginn

When you set the Telegram Agent to ‘truncate’ long messages you can pass him a payload with only a e.g. a ‘photo’ field and no ‘caption’ but then you set the agent to ‘split’ long captions it will error out with the following message when you don’t pass a ‘caption’ field in the event: undefined method `scan' for nil:NilClass /app/app/models/agents/telegram_agent.rb:137:in `send_telegram_messages'

This is because of a missing existance check when handling the caption. It might also be good to add such a check to ‘text’ type messages.

Updated 31/07/2019 08:03

Cannot copy organization secret from mobile phone

thepracticaldev/dev.to

<!– Before creating a bug report, try disabling browser extensions to see if the bug is still present. –>

<!– If you’re having trouble updating your profile, it is likely because you logged in separately with GitHub & Twitter. Please check if this is the case before creating a bug report, and email yo@dev.to so we can merge your accounts. –>

Describe the bug As an admin, I cannot copy or select the generated secret to add someone to my organization account on dev.to from safari browser of my iOS 12 iPhone 6S device <!– A clear and concise description of what the bug is. –>

<!– Steps to reproduce the behavior: –>

<!– 1. Go to ‘…’ –> <!– 2. Click on ‘….’ –> <!– 3. Scroll down to ‘….’ –> <!– 4. See error –>

<!– A clear and concise description of what you expected to happen. –>

<!– If applicable, add screenshots to help explain your problem. –>

Smartphone (please complete the following information):

  • Device: iPhone 6S
  • OS: iOS 12.4
  • Browser: Safari
  • Version: 12.4

<!– Add any other context about the problem or helpful links here. –>

Updated 12/08/2019 13:45 1 Comments

Allow selection of multiple sections per class for TAs

YACS-RCOS/yacs

YACS was very helpful for making sure that my classes didn’t conflict. However, I am a TA for Engineering Processes, and would like to be able to select multiple sections of that class to be permanent in my schedule, so that I can build my class schedule around that. I think this would be helpful for any student who is TAing for lab sections or a mentoring sessions.

Updated 02/08/2019 21:39 6 Comments

Case view: add import and export

voc/wink

@meise Ich hab mal einen importer geschrieben die mit der export funktion generierten CSV files auch wieder importieren kann, vgl. https://github.com/voc/wink/commit/78f4e2a16c2e36053df6cac61c02ef61ca7b4c97 – und damit heute auch mal das muCCC-Case angelegt.

Kannst du mir ggf. einen Stub machen, mit dem man ein File vom Browser aus hochladen kann bzw. mir ein paar Tips geben wie man das am besten in die normale Rails App integriert?

Ich stelle mir da so nen Export Link auf der Case-View-Seite vor, mit dem man alles Items des aktullen Cases als CSV bekommt, diese dann bearbeiten kann und dann über diese neue Import Funktion wieder ins System bekommt…

Danke im voraus, Andi

Updated 29/07/2019 00:30

When were the sources published?

marekdlugos/kauzy

Related to #5: How to source media links to the cases?

A question worth asking is: if there is a lot of resources on the case, let’s say the case started 5 years ago but there were new information reveled 1 month ago then it would sense to sort the links by the date they were published.

Then it comes to another question: if there was something new published, how do we find out?

Updated 28/07/2019 21:11

License not detected, because of README with references to other licenses

licensee/licensee

I have a project almost ready for import in GitHub after migration from a legacy VCS. However, when I run licensee locally in the migrated Git repository I’m getting the following results:

License:        NOASSERTION
Matched files:  COPYING, README
COPYING:
  Content hash:  3becd209e8ed8039656c1debe01dd17b9a79208f
  Confidence:    100.00%
  Matcher:       Licensee::Matchers::Exact
  License:       GPL-2.0
README:
  Content hash:  36153308258b48be362f3413cd7119f05c07a582
  Confidence:    90.00%
  Matcher:       Licensee::Matchers::Reference
  License:       MIT

File COPYING is exact match for GPL2 as expected, but the text in README is causing detection of MIT license reference and hence no license detection for the project. The README file contains the following section:

License
------------------------------------------------------------------------------
The entire software including the packages are licensed under the
General Public License (GPL). See file COPYING for details.
Please, note that some of the software bundled in the packages can be with
different than GPL license (MPL, MIT, Skype, Opera, etc).

I tried removing the “references” leaving just the line “See file COPYING for details.” in this section, but like this the result from licensee becomes:

License:        NOASSERTION
Matched files:  COPYING, README
COPYING:
  Content hash:  3becd209e8ed8039656c1debe01dd17b9a79208f
  Confidence:    100.00%
  Matcher:       Licensee::Matchers::Exact
  License:       GPL-2.0
README:
  Content hash:  672971383d3e5255c587f2a00b652a9cba3ed3fd
  License:       NOASSERTION

So the project’s license is still not properly detected? How to fix this?

Updated 30/07/2019 00:38 5 Comments

Diaperbanks can input their pickup schedule

rubyforgood/diaper

Hi lovelies 🌞

Can we please make it possible for Diaperbanks to enter their pickup schedule, so that partners know when they can pick up diapers?

The schedule consists of dates (Monday 29 July 2019) and a time slot (eg 0930-1130). Here is an example pickup schedule: 2019.Diaper.Distribution.Schedule.pdf

Partnerbase will then request this information so partners can select their pickup slots as part of the diaper request user journey.

For the full issue, created by @pdxdiaperbank, please see here: rubyforgood/partner#104

If there’s anything more I can add, please let me know! Thank you ❤️

Updated 17/08/2019 21:57 2 Comments

Add Reminder Button to Distributions

rubyforgood/diaper

Summary

One of our stakeholders commented that since we now send emails about distributions their partners rate of missing their pick up appointments has dramatically decreased. One of our stakeholders has a suggestion to further improve this.

On the distribution edit page we should have a field “Send Email Reminder The Day Before?” with a checkbox that will send the partner an email the day before their distribution reminding them of their pickup the next day.

Criteria for Completion

  • [ ] Checkbox has been added
  • [ ] When the checkbox is checked, an email is sent the day before
  • [ ] A spec to verify that this occurs

Testing scheduled jobs and email output can be tricky. Please ping us in the #diaper channel in the RfG slack for finding a pairing partner if you’re unfamiliar with doing this and would like some assistance!

Updated 04/08/2019 06:38

Fuzzy timestamps on notifications become stale

thepracticaldev/dev.to

Describe the bug

The publication timestamps on articles in the notifications view aren’t updated when time passes.

I dug a bit in the template and the bug seems to be caused by a hardcoded fuzzy timestamp inside a view cache:

https://github.com/thepracticaldev/dev.to/blob/6cc0d125b5e9dac010080ffca408ce23e7d59f0c/app/views/notifications/_article.html.erb#L34-L38

This causes the cache to become stale almost instantly.

A possible solution could be to store the publication date in an attribute on the element and use JavaScript to render and update the fuzzy timestamps dynamically.

I’d be more than happy to take on this issue. It’d be my first contribution to dev.to 🍻

To Reproduce

  1. Click the “Notifications” bell in the navigation menu
  2. Inspect the timestamp below the header “[author] made a new post:”

Expected behavior

The timestamp should reflect the actual publication date.

Screenshots <img width=“634” alt=“Screenshot 2019-07-26 at 18 16 01” src=“https://user-images.githubusercontent.com/18333420/61973738-13702900-afe5-11e9-9292-095d8a6f5e24.png”>

Desktop: - OS: macOS (10.14.4) - Browser: Safari - Version: 12.1 (14607.1.40.1.4)

Additional context

There seem to be other issues closely related to this. @ClaraMorgen made an excellent solution to a related problem in the PR #3076 to which issue #2997 and #3183 were both closed — even though this issue remains.

Please let me know if I’m missing something 🙏

Updated 01/08/2019 00:59 1 Comments

Finalize the name + create a logo

marekdlugos/kauzy

First, I thought about the name Kauzy (Cases in Slovak) following with the domain kauzy.sk. Until I found out that the domain is already taken.

Additionally @jkostolansky had a very nice and meaningful idea of further expansion of the project scope to cover the whole politician portfolio. E.g.: - How the politician voted in various situations? - How many of his statements were true/misleading/false? (Data from Demagog.sk) - How much of an income did the politician report last year? (Data from verejne.digital) …

Ideas

  • oversipolitika.sk (available 26/07/2019)
  • politickekauzy.sk (available 26/07/2019)

Don’t forget to

  • [ ] Add a favicon
  • [ ] Add basic SEO tags (description, keywords,…)
  • [ ] Add tags for Facebook sharing
  • [ ] Add tags for Twitter sharing
Updated 28/07/2019 22:28

How to source media links to the cases?

marekdlugos/kauzy

Crawler

I have never worked on something like this before but could imagine a bot that would visit major news web sites like DennikN, SME, Aktuality and automatically add articles to the cases based on the keywords.

  • How accurate would something like this be?
  • What if this app would be used in e.g. Czechia? Could there be a config file to add news web sites?

Suggestions from visitors

If we would not have the case/person to our disposal in the database we could let people fill out a form listing: e.g. name of the case, links related.

Later we could see the suggested content in the admin panel and approve/decline/edit it from there.

Manual entry

I am surprised that Demagog.sk has volunteers to help them with this job.

My initial plan was to find one responsible person who is into politics, love the idea of this project and would invest the time into filling up the database with data.

Updated 26/07/2019 10:58

Retrieve more data from git log

SofaKing18/changelog

https://git-scm.com/docs/pretty-formats

author = %an hash = %h meda = %d commit message = %s commit time = %cr

If we change current command in FetchGitLog and change seporators, then we can delete some regular expressions in Change class and same more data

Guess table is needle for changelog on the index page

Updated 25/07/2019 21:37

Port installer to Bash

Homebrew/install

The installer should be ported (with identical logic on macOS to begin with) to Bash for:

  1. future versions of macOS that don’t include Ruby
  2. avoid failing with messed up ruby in the users' $PATH
  3. allow using the same installer for Homebrew on Linux (CC @Homebrew/linux).

The best strategy to begin with would be a line-by-line port.

Ideally the same thing would be done for the uninstaller but this isn’t essential for a first PR.

Updated 29/07/2019 19:07 3 Comments

Can't install gem with mutant

datarockets/datarockets-style

Has a dependecies conflict with mutant-rspec library

Fetching gem metadata from http://rubygems.org/.......
Fetching gem metadata from http://rubygems.org/.
Resolving dependencies........
Bundler could not find compatible versions for gem "parser":
  In snapshot (Gemfile.lock):
    parser (= 2.5.3.0)

  In Gemfile:
    mutant-rspec was resolved to 0.8.24, which depends on
      mutant (~> 0.8.24) was resolved to 0.8.24, which depends on
        parser (~> 2.5.1)

    datarockets-style (~> 0.2.0) was resolved to 0.2.0, which depends on
      rubocop (~> 0.73.0) was resolved to 0.73.0, which depends on
        parser (>= 2.6)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

It can also be rubocop or mutant issue.

Mutant rspec: https://github.com/mbj/mutant/blob/master/docs/mutant-rspec.md

Updated 26/07/2019 17:18 1 Comments

Namespace missing in fakerbot

faker-ruby/faker-bot

image

Gem built from latest master. Windows 10, ruby 2.4.4p296 (2018-03-28 revision 63013) and ruby 2.5.3p105 (2018-10-18 revision 65156)

Expecting to see full namespace at top of tree, ie Faker::PhoneNumber (as shown in #1507 )

From: https://github.com/stympy/faker/issues/1565

Updated 09/08/2019 11:44 2 Comments

Communities

CredentialEngine/CredentialRegistry

@edgarf @science We want to start using additional communities. What is the process to create a community? Can a process be added to allow someone from our team to manage communities? The first request would be to add a community of navy to the sandbox and staging servers.

Organization keys We have a process to request publishing keys for organizations. Are these keys specific to a community, or once an organization has a publishing key, it can publish to any community?

I don’t know if there will be a use case for restricting who can publish to non-default communities. If there is no current limitation to which communities an organization can publish, what would be involved (at a high level) to implement controls for community publishing?

Updated 08/08/2019 13:02 16 Comments

Fork me on GitHub