No description
Find a file
Julianna Tetreault 58f9c303aa
Add active_status_updated_at to the Broadcasts Table (#8451) [deploy]
* Add last_active_at datetime to Broadcasts table

* Add last_active_at to Broadcast index view

* Add callback to Broadcast.rb to update last_active_at

* Add a data_update script to backfill the last_active_at column on the Broadcasts table

* Add a spec for updating the last_active_at timestamp in models/broadcast_spec.rb

* Format last_active_at timestamp via strftime in index.html.erb

* Remove data_update_script: backfill_last_active_at_for_broadcasts

* Remove ActiveRecord::Dirty method from broadcast.rb

* Adjust callback in broadcast.rb and last_active_at timestamp format in index.html.erb

* Adjust time in #update_last_active_at and add the safe navigation operator to index.html.erb
  * Accounts for nil last_active_at values in the view
  * Uses Time.current in place of Time.zone.now

* Remove last_active_at param from Broadcasts::Controller

* Add spec to broadcasts_spec.rb to test the updated attribute via a request

* Adjust current_time in broadcasts_spec.rb

* Adjust Timecop.freeze in broadcasts_spec.rb to resolve Travis faliure (fingers crossed)

* Adjust expectation to compare against last_active_at timestamp rather than current time

* Adds Timecop back and stores last_active_at timestamp to test against

* Rename last_active_at to active_status_updated_at on Broadcasts table
  - Renames last_active_at to active_status_updated_at in specs
  - Renames last_active_at to active_status_updated_at in model
  - Renames last_active_at to active_status_updated_at in view
  - Adjusts spelling in spec descriptions
  - Rewords active_status_updated_at in view to Last Active On
2020-06-16 13:04:14 -06:00
.gems Bugfix for #7663 and refactor of container setup (#7747) 2020-05-28 12:11:51 -05:00
.github Add QA instructions to pull request template (#8412) 2020-06-11 10:49:39 -07:00
.vscode Add nickytonline.dev-to-extension-pack to VSCode recommendations (#6437) 2020-03-04 14:22:28 -05:00
.yarn/releases Update yarn version (#6857) 2020-03-26 18:08:49 -04:00
app Add active_status_updated_at to the Broadcasts Table (#8451) [deploy] 2020-06-16 13:04:14 -06:00
bin This should fix issue #8255 (#8408) 2020-06-11 16:13:18 -04:00
config Update config.hosts for GitPod (#8677) 2020-06-15 17:18:33 +02:00
datadog [deploy] dont configure Honeycomb if its disabled (#6618) 2020-05-11 11:59:18 -05:00
db Add active_status_updated_at to the Broadcasts Table (#8451) [deploy] 2020-06-16 13:04:14 -06:00
docs Documentation: Document Status of Percy (#8424) 2020-06-12 11:07:07 +02:00
lib [deploy] Remove user_counters table (#8445) 2020-06-15 11:46:02 -04:00
log Initial commit 2018-02-28 16:11:08 -05:00
public [deploy] Remove unnecessary bulk from image assets (#8306) 2020-06-05 17:51:06 -04:00
scripts Bugfix for #7663 and refactor of container setup (#7747) 2020-05-28 12:11:51 -05:00
spec Add active_status_updated_at to the Broadcasts Table (#8451) [deploy] 2020-06-16 13:04:14 -06:00
vendor [deploy] Update Rack to Fix Bundle Audit Failure (#8696) 2020-06-15 18:54:27 -05:00
.codeclimate.yml Loosen CodeClimate's method-lines rule (#7980) 2020-05-20 16:44:35 +02:00
.dockerignore Set --disable-march-tune-native when building sassc. (#8229) 2020-06-01 22:25:47 -05:00
.editorconfig Export articles/posts (#576) 2018-11-21 11:13:36 -05:00
.erb-lint.yml [deploy] Remove Unused Pro Memberships (#7894) 2020-05-20 11:54:30 -05:00
.eslintignore Add app/assets/javascripts/lib to eslintignore (#4323) [ci skip] 2019-10-08 18:38:59 -04:00
.eslintrc.js Bump to sprockets 4.0.0 (#6172) [deploy] 2020-02-24 18:16:08 -05:00
.gitattributes Topbar icons states (#7012) 2020-04-02 11:50:05 +02:00
.gitdocs.js Create DelayedJob config and misc DX changes (#979) 2018-10-26 13:15:14 -04:00
.gitignore Bugfix for #7663 and refactor of container setup (#7747) 2020-05-28 12:11:51 -05:00
.gitpod.dockerfile Update config.hosts for GitPod (#8677) 2020-06-15 17:18:33 +02:00
.gitpod.yml [deploy] Remove ALL Algolia Code (#7577) 2020-04-29 10:11:57 -05:00
.nvmrc Update config.hosts for GitPod (#8677) 2020-06-15 17:18:33 +02:00
.postcssrc.yml Initial commit 2018-02-28 16:11:08 -05:00
.prettierignore Use yarn 1.21.1 (#5786) 2020-02-05 17:04:06 -05:00
.rspec [deploy] Spec Speedup: Use Knapsack to Run Parallel Builds (#8390) 2020-06-11 10:27:11 -05:00
.rubocop.yml Routine rubocop fixes (#8346) 2020-06-08 17:37:25 +02:00
.rubocop_todo.yml Routine rubocop fixes (#8685) 2020-06-16 11:09:15 +02:00
.ruby-version Upgrade Ruby to 2.7.1 (#7097) [deploy] 2020-04-06 18:21:50 +02:00
.simplecov Update .simplecov (#8078) 2020-05-27 14:37:21 -04:00
.slugignore Add .slugignore (#6528) 2020-03-10 14:43:48 -04:00
.travis.yml Only Run Deploy Stage if Branch Master (#8450) 2020-06-15 10:57:43 +02:00
.validaterc Validate API OpenAPI 3 spec (#6519) 2020-03-09 16:40:05 +01:00
.yardopts Adds Ruby source code documentation to docs.dev.to (#2656) 2019-05-02 13:50:58 -04:00
.yarnrc Update yarn version (#6857) 2020-03-26 18:08:49 -04:00
babel.config.js [deploy] Update webpacker configuration (#8004) 2020-05-25 12:03:18 -04:00
CODE_OF_CONDUCT.md Replace ban/banned with suspend/suspended in user facing text (#5816) [deploy] 2020-02-10 10:12:53 -05:00
config.ru Remove honeycomb code from config.ru (#2378) 2019-04-11 11:58:13 -04:00
container-compose.yml Bugfix for #7663 and refactor of container setup (#7747) 2020-05-28 12:11:51 -05:00
Containerfile Set --disable-march-tune-native when building sassc. (#8229) 2020-06-01 22:25:47 -05:00
CONTRIBUTING.md Fix dev.to link (#8097) 2020-05-28 10:00:47 +02:00
docker-compose.yml Bugfix for #7663 and refactor of container setup (#7747) 2020-05-28 12:11:51 -05:00
Dockerfile Bugfix for #7663 and refactor of container setup (#7747) 2020-05-28 12:11:51 -05:00
empty-module.js Initial commit 2018-02-28 16:11:08 -05:00
Envfile Make Devise.mailer_sender configurable (#8246) 2020-06-08 12:02:07 +02:00
Gemfile Bump amazing_print from 1.1.0 to 1.2.0 (#8640) 2020-06-15 10:31:11 -05:00
Gemfile.lock [deploy] Update Rack to Fix Bundle Audit Failure (#8696) 2020-06-15 18:54:27 -05:00
Guardfile Remove controller specs (#2224) 2019-03-29 19:05:02 -04:00
jest.config.js Import jest-axe matchers via setupFilesAfterEnv config property (#8217) 2020-06-01 16:37:32 +02:00
jsconfig.json [deploy] New Feature: Mod Actions Panel (#7777) 2020-06-08 13:24:18 -04:00
LICENSE.md Ran all markdown files through prettier to fix a handful. (#4599) 2019-10-28 08:20:53 -04:00
package.json Bump eslint-plugin-import from 2.20.2 to 2.21.2 (#8635) 2020-06-15 14:24:12 -04:00
Procfile remove rake jobs:work references from code (#6082) [deploy] 2020-02-14 15:18:08 -05:00
Procfile.dev Adapt dev env to use remote box (#7742) 2020-05-13 10:21:00 -04:00
Procfile.dev-hot Initial commit 2018-02-28 16:11:08 -05:00
Rakefile Code cleanups (#659) 2018-08-07 11:00:13 -04:00
README.md Documentation: Add More Knapsack Information to Docs (#8419) 2020-06-11 17:50:32 -05:00
release-tasks.sh [deploy] Consolidate Setup Tasks to a Single Rake Task (#8065) 2020-05-27 11:59:07 -05:00
testSetup.js Import jest-axe matchers via setupFilesAfterEnv config property (#8217) 2020-06-01 16:37:32 +02:00
yarn.lock Bump eslint-plugin-import from 2.20.2 to 2.21.2 (#8635) 2020-06-15 14:24:12 -04:00


DEV

DEV Community 👩‍💻👨‍💻

The Human Layer of the Stack

ruby version rails version Travis Status for thepracticaldev/dev.to Code Climate maintainability Code Climate test coverage Code Climate technical debt CodeTriage badge Dependabot Badge GitPod badge Netlify badge GitHub code size in bytes GitHub commit activity GitHub issues ready for dev Honeybadger badge Knapsack Pro Parallel CI builds for dev.to

Welcome to the dev.to codebase. We are so excited to have you. With your help, we can build out DEV to be more stable and better serve our community.

What is dev.to?

dev.to (or just DEV) is a platform where software developers write articles, take part in discussions, and build their professional profiles. We value supportive and constructive dialogue in the pursuit of great code and career growth for all members. The ecosystem spans from beginner to advanced developers, and all are welcome to find their place within our community. ❤️

Table of Contents

Contributing

We encourage you to contribute to dev.to! Please check out the Contributing to dev.to guide for guidelines about how to proceed.

Getting Started

This section provides a high-level quick start guide. If you're looking for the installation guide, you'll want to refer to our complete Developer Documentation.

We run on a Rails backend, and we are currently transitioning to a Preact-first frontend.

A more complete overview of our stack is available in our docs.

Prerequisites

Local

Containers

Linux

OS X

Installation Documentation

View Full Installation Documentation.

Developer Documentation

Check out our dedicated docs page for more technical documentation.

Core team

Vulnerability disclosure

We welcome security research on DEV under the terms of our vulnerability disclosure policy.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Please see the LICENSE file in our repository for the full text.

Like many open source projects, we require that contributors provide us with a Contributor License Agreement (CLA). By submitting code to the DEV project, you are granting us a right to use that code under the terms of the CLA.

Our version of the CLA was adapted from the Microsoft Contributor License Agreement, which they generously made available to the public domain under Creative Commons CC0 1.0 Universal.

Any questions, please refer to our license FAQ doc or email yo@dev.to.


Sloan, the sloth mascot
Happy Coding ❤️