No description
Find a file
Ridhwana 4549144fbb
Refactor deployed_at and latest_commit_id code (#12224)
* WIP: release footprint in the admin UI

* feat: show the commit ID and the date

* chore: change env optional to empty string

* fix: change the FOREM_BUILD_DATE to RELEASE_FOOTPRINT

* feat: add Not Available as a last option

* test: last deployed time and latest commit id

* feat: update the way we change the env variable!

* fix: we need to set the RELEASE FOOTPRINT so that this clause is not hit - `return path if release_footprint.blank?`

* feat: add a Forem Instance Model

* chore: rename variable

* feat: use the new model that we created

* feat: Update the Forem Instance model to remove Not available from the model method and add it to the view layer

* test: Forem Instance model to return the correct values when present

* feat: use Forem.deployed_at instead of the Application config directly

* chore: remove the initializer

* feat: rename the data keys to reflect what it does

* fix: oops evaluate the var

* refactor: static values that can never change during the lifetime of the app should be constants

* chore: setup the test to have a release footprint before the test gets executed

* chore: remove the methods

* revert to method + cache

* revert to using method

* reset the instance variable
2021-01-13 16:53:59 +02:00
.buildkite Removes this dupe container block since we are going to run this pipeline (#11506) 2020-11-19 15:05:49 -06:00
.gems Bugfix for #7663 and refactor of container setup (#7747) 2020-05-28 12:11:51 -05:00
.github Downgrade binding_of_caller to fix Docker compose (#12148) 2021-01-06 17:02:27 +01:00
.vscode Auto-generate CSS utility classes documentation in Storybook (#9633) 2020-08-11 23:32:14 -04:00
.yarn/releases Update to latest yarn version (#10441) 2020-09-28 13:24:35 -04:00
app Refactor deployed_at and latest_commit_id code (#12224) 2021-01-13 16:53:59 +02:00
bin Added webpack bundle analyzer (#12013) 2020-12-22 19:13:40 -05:00
config Refactor deployed_at and latest_commit_id code (#12224) 2021-01-13 16:53:59 +02:00
cypress Add data cleaning pre-test run to end to end tests (#12001) 2020-12-26 16:58:12 +01:00
datadog [deploy] dont configure Honeycomb if its disabled (#6618) 2020-05-11 11:59:18 -05:00
db Remove contact_consent from users (#12196) 2021-01-12 16:18:47 -05:00
docs API: Endpoint to get an organization's articles (#12237) 2021-01-13 13:09:58 +01:00
lib Code snippet fullscreen icon - setting constraints for size. (#12010) 2021-01-13 15:17:10 +01:00
log Initial commit 2018-02-28 16:11:08 -05:00
public Restore static error pages (#11882) 2020-12-14 12:06:41 -05:00
scripts [Travis] Create after_deploy Honeycomb script (#12236) 2021-01-12 13:51:05 -05:00
spec Refactor deployed_at and latest_commit_id code (#12224) 2021-01-13 16:53:59 +02:00
vendor Bump strong_migrations from 0.7.4 to 0.7.5 (#12258) 2021-01-13 07:49:32 -06:00
.codeclimate.yml [deploy] Rubocop: fix violations of Layout/LineLength (#9197) 2020-07-08 08:36:36 -05:00
.dockerignore Add FOREM_BUILD_SHA and FOREM_BUILD_DATE to the container. (#9999) 2020-08-25 18:19:04 -05:00
.editorconfig Export articles/posts (#576) 2018-11-21 11:13:36 -05:00
.env_sample Add application deployment information to the admin page (#12149) 2021-01-08 16:36:12 +02:00
.erb-lint.yml [deploy] Remove Unused Pro Memberships (#7894) 2020-05-20 11:54:30 -05:00
.eslintignore Remove non application files from frontend code coverage (#11752) 2020-12-04 20:00:20 -05:00
.eslintrc.js add no console rule front-end (#10362) 2020-09-29 09:56:37 +02:00
.gitattributes Adding file extensions to gitattributes (#10945) 2020-10-20 11:09:46 +02:00
.gitdocs.js Adapt "gitdocs serve" to work in a remote dev env (#8791) 2020-06-25 21:02:45 -04:00
.gitignore Use Travis builtin caching (#12045) 2020-12-28 14:41:31 +01:00
.gitpod.dockerfile Update to NodeJS 14.14.x to match with Fedora 33's installed version. (#11348) 2020-11-10 09:45:08 -06:00
.gitpod.yml Move .env_sample out of /config directory (#9868) 2020-08-19 18:18:30 +02:00
.nvmrc Update to NodeJS 14.14.x to match with Fedora 33's installed version. (#11348) 2020-11-10 09:45:08 -06: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
.prettierrc.json Extracting prettier config (#10847) 2020-10-14 22:28:31 -04:00
.rspec [deploy] Spec Speedup: Use Knapsack to Run Parallel Builds (#8390) 2020-06-11 10:27:11 -05:00
.rubocop.yml Enable new Rubocop 1.7.0 cops (#12053) 2021-01-02 11:11:43 +01:00
.rubocop_todo.yml Fix new Rubocop violations (#10808) 2020-10-20 09:28:53 -04:00
.ruby-version Update to Ruby 2.7.2 (#10594) 2020-11-05 16:11:09 +01:00
.simplecov Remove resource_admin dashboards (Administrate) (#11792) 2020-12-08 12:38:13 -06:00
.slugignore [Travis] Create after_deploy Honeycomb script (#12236) 2021-01-12 13:51:05 -05:00
.travis.yml [Travis] Create after_deploy Honeycomb script (#12236) 2021-01-12 13:51:05 -05: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 to latest yarn version (#10441) 2020-09-28 13:24:35 -04:00
babel.config.js Replace globals with node env (#10767) 2020-10-14 17:05:38 -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 Routine Rubocop fixes (#9302) 2020-07-14 17:24:03 +02:00
container-compose.yml Fix container composes w/r/t multistage container builds (#11531) 2020-11-23 15:15:21 -06:00
Containerfile Fix container composes w/r/t multistage container builds (#11531) 2020-11-23 15:15:21 -06:00
CONTRIBUTING.md Change link in Contributing Docs (#9530) 2020-07-27 10:06:59 +07:00
cypress.dev.json Add data cleaning pre-test run to end to end tests (#12001) 2020-12-26 16:58:12 +01:00
cypress.json Fixed initial e2e test now that data updates are run. (#11958) 2020-12-21 08:40:11 -05:00
docker-compose.yml Use wait-retry-interval parameter for dockerize (#12101) 2021-01-05 08:54:42 +01: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
Gemfile Bump katex from 0.6.0 to 0.6.1 (#12257) 2021-01-13 07:48:29 -06:00
Gemfile.lock Bump strong_migrations from 0.7.4 to 0.7.5 (#12258) 2021-01-13 07:49:32 -06:00
Guardfile Upgrade rubocop* packages to the latest version and fix violations (#11972) 2020-12-21 18:29:43 +01:00
jest.config.js Fixed eslint/jest configurations for cypress. (#11841) 2020-12-10 12:48:37 +01: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 @testing-library/jest-dom from 5.11.8 to 5.11.9 (#12259) 2021-01-13 06:01:46 -05:00
postcss.config.js Suppress Postcss warnings & Re-enable Benhalpern deploy (#11521) 2020-11-20 11:27:49 -05: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 run on a remote box (#8232) 2020-06-18 13:01:49 +02: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 Add Katie core team members 🎉 (#12243) 2021-01-12 17:12:53 -05:00
release-tasks.sh [deploy] Optimization: Change Large Table Primary Keys to Bigints (#9476) 2020-08-08 18:45:01 -05:00
SECURITY.md [deploy] 🚀 Feature: Chat channel membership manager component (#8945) 2020-07-20 08:08:31 -04:00
testSetup.js Fixed some frontend tests causing unhandled rejection errors (#11627) 2020-11-26 06:11:25 -05:00
yarn.lock Bump @testing-library/jest-dom from 5.11.8 to 5.11.9 (#12259) 2021-01-13 06:01:46 -05:00


Forem 🌱

For Empowering Community

ruby version rails version Travis Status for forem/forem Code Climate maintainability 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 Forem codebase, the platform that powers dev.to. We are so excited to have you. With your help, we can build out Forems usability, scalability, and stability to better serve our communities.

What is Forem?

Forem is open source software for building communities. Communities for your peers, customers, fanbases, families, friends, and any other time and space where people need to come together to be part of a collective. See our announcement post for a higher level overview of what Forem is.

dev.to (or just DEV) is hosted by Forem. It is a community of software developers who 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

Community

For a place to have open discussions on features, voice your ideas, or get help with general questions please visit our community at forem.dev.

Contributing

We encourage you to contribute to Forem! Please check out the Contributing to Forem 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

Forem is the open source software which powers DEV.

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

Acknowledgments

Thank you to the Twemoji project for the usage of their emojis.

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 Forem 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 ❤️

⬆ Back to Top