-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #798: Removed signal related files and depentant methods #825
Conversation
Hi @jayyyin, can you mention which issue this PR addresses, so that we can see which milestone/epics/etc this work relates to? |
@Pomax, @cadecairos could one of you take a look at this PR? @jayyyin is my student, and this is for the course. It would be great if someone could do a review. |
@jayyyin (edit: sorry for the random tag, jayYin :)) apologies for the silence. We added Snyk to this project to help monitor our dependencies, but due to the nature of the integration, PRs from contributors always fail on Travis and Appveyor. Since this isn't ideal, or helpful for contributors like yourself, I'm going to remove the automatic running of Snyk from the test scripts, which will unblock you once you rebase. |
@cadecairos ok, so I just need to update my version is that correct? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nearly there! just a few small changes to make
@@ -6,5 +6,4 @@ class HighlightsConfig(AppConfig): | |||
verbose_name = 'highlights' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should be able to remove this file entirely, if we remove the contents (but not the file) of network-api/app/networkapi/highlights/__init__.py
@@ -6,5 +6,4 @@ class NewsConfig(AppConfig): | |||
verbose_name = 'news' | |||
|
|||
def ready(self): | |||
from networkapi.news.signals import setup_signals | |||
setup_signals() | |||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should be able to remove this file entirely, if we remove the contents (but not the file) of network-api/app/networkapi/news/init.py
@@ -6,5 +6,4 @@ class PeopleConfig(AppConfig): | |||
verbose_name = 'people' | |||
|
|||
def ready(self): | |||
from networkapi.people.signals import setup_signals | |||
setup_signals() | |||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should be able to remove this file entirely, if we remove the contents (but not the file) of network-api/app/networkapi/people/init.py
sleep(2) | ||
self.assertEqual(self.times_called, 1) | ||
class TestUtilty(TestCase): | ||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets drop this file entirely
@jayyyin we haven't covered rebasing yet, so here is what you want to do (NOTE: I assume you have a
If you get conflicts at this stage, you can do If it works, you can push your code here (note the
Let me know if you have questions. |
901b053
to
817707a
Compare
@cadecairos changes have been done and committed, conflicts have been fixed via rebasing and everything looks good to go =D |
@cadecairos is this good to go? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's clean up some of the leftover files that we don't need.
@cadecairos did I miss anything? |
@cadecairos just realized I forgot to add before commiting, last time I committed, silly me..., everything should be good now. |
Looks like this is still failing. Is this based from the latest build of master? |
@alanmoo that's probably the issue, let me fix that |
Signals removed, tester changed, build and decorator files removed
392612c
to
76879fd
Compare
@alanmoo pretty sure I rebased the master correctly and it appears at least one of the tests still fails, not sure what could be wrong now... |
It’s a problem on master. This should be ready for a proper review when another PR lands and we rebase. |
@alanmoo ah I see, so I just need to wait now? |
Checks have passed. @cadecairos is this good now? |
so I've been chatting with @humphd, and have heard that a lot of people have been away, I'd like to follow up with this. |
I believe we've changed the folder structure a bit since this PR was opened, so it's going to take a bit of git manipulation to get this in merge-able shape again. You may want to open another branch off the current master and manually make the changes again. |
@alanmoo alright I'll take a look at the changes needed once I get home |
@alanmoo how would I make a new branch, rebase the fork I have? or somehow re-fork it? |
@alanmoo @cadecairos created new pull request here #920 |
Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.7.8 to 0.8.2. <details> <summary>Release notes</summary> *Sourced from [shelljs's releases](https://github.com/shelljs/shelljs/releases).* > ## v0.8.1 > **Closed issues:** > > - Exec failing with internal error when piping large output [\[#818](https://github-redirect.dependabot.com/shelljs/shelljs/issues/818)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/818) > - using sed to replace just the first occurrence of a string [\[#813](https://github-redirect.dependabot.com/shelljs/shelljs/issues/813)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/813) > > **Merged pull requests:** > > - Revert "refactor\(exec\): remove paramsFile \(\#807\)" [\[#819](https://github-redirect.dependabot.com/shelljs/shelljs/issues/819)](https://github-redirect.dependabot.com/shelljs/shelljs/pull/819) ([nfischer](https://github.com/nfischer)) > > ## v0.8.0 > **Closed issues:** > > - Snyk vulnerability DB reporting command injection vulnerability in ShellJS [\[#810](https://github-redirect.dependabot.com/shelljs/shelljs/issues/810)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/810) > - chore: upgrade nyc [\[#803](https://github-redirect.dependabot.com/shelljs/shelljs/issues/803)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/803) > - Update CI to use Node v9 [\[#799](https://github-redirect.dependabot.com/shelljs/shelljs/issues/799)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/799) > - Link to FAQ wiki section in our issue template [\[#787](https://github-redirect.dependabot.com/shelljs/shelljs/issues/787)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/787) > - Is it possible to get a js library\(file\) for ShellJS [\[#776](https://github-redirect.dependabot.com/shelljs/shelljs/issues/776)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/776) > - 48, [\[#774](https://github-redirect.dependabot.com/shelljs/shelljs/issues/774)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/774) > - 47 [\[#773](https://github-redirect.dependabot.com/shelljs/shelljs/issues/773)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/773) > - Exec function calls JSON.stringify on command [\[#772](https://github-redirect.dependabot.com/shelljs/shelljs/issues/772)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/772) > - getting different result from terminal and with shelljs [\[#769](https://github-redirect.dependabot.com/shelljs/shelljs/issues/769)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/769) > - test\(\) does not support -w and -x options [\[#768](https://github-redirect.dependabot.com/shelljs/shelljs/issues/768)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/768) > - Snyk "high severity" issue [\[#766](https://github-redirect.dependabot.com/shelljs/shelljs/issues/766)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/766) > - Snyk "high security [\[#765](https://github-redirect.dependabot.com/shelljs/shelljs/issues/765)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/765) > - ShellJS doesn't respect NPM Registry being set outside of it [\[#761](https://github-redirect.dependabot.com/shelljs/shelljs/issues/761)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/761) > - Run second shell script [\[#756](https://github-redirect.dependabot.com/shelljs/shelljs/issues/756)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/756) > - shelljs seems NOT compatible with nexe under CentOS 6.5 [\[#754](https://github-redirect.dependabot.com/shelljs/shelljs/issues/754)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/754) > - Feature request: pushd/popd -q option [\[#753](https://github-redirect.dependabot.com/shelljs/shelljs/issues/753)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/753) > - cat doesn't support '-n' option [\[#750](https://github-redirect.dependabot.com/shelljs/shelljs/issues/750)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/750) > - shelljs run xcodebuild error [\[#749](https://github-redirect.dependabot.com/shelljs/shelljs/issues/749)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/749) > - Add wrappers around fs.statSync and fs.lstatSync [\[#745](https://github-redirect.dependabot.com/shelljs/shelljs/issues/745)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/745) > - Improve coverage for exec\(\) [\[#742](https://github-redirect.dependabot.com/shelljs/shelljs/issues/742)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/742) > - Improve coverage for head\(\) [\[#741](https://github-redirect.dependabot.com/shelljs/shelljs/issues/741)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/741) > - shelljs is no longer used in PDF.js [\[#737](https://github-redirect.dependabot.com/shelljs/shelljs/issues/737)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/737) > - ls doesn't follow links to directories [\[#733](https://github-redirect.dependabot.com/shelljs/shelljs/issues/733)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/733) > - Add test for `ls regular-file.txt` [\[#732](https://github-redirect.dependabot.com/shelljs/shelljs/issues/732)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/732) > - shelljs.exec hangs when password it's asked [\[#716](https://github-redirect.dependabot.com/shelljs/shelljs/issues/716)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/716) > - Clean up common tests [\[#714](https://github-redirect.dependabot.com/shelljs/shelljs/issues/714)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/714) > - Can't run docker with exec\(\) \(the input device is not a TTY\) [\[#680](https://github-redirect.dependabot.com/shelljs/shelljs/issues/680)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/680) > - Cant get encoding buffer to work on exec [\[#675](https://github-redirect.dependabot.com/shelljs/shelljs/issues/675)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/675) > - Set up Codecov for the project [\[#671](https://github-redirect.dependabot.com/shelljs/shelljs/issues/671)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/671) > - ShellJS: internal error Error: EBUSY: resource busy or locked, lstat 'C:\pagefile.sys' [\[#514](https://github-redirect.dependabot.com/shelljs/shelljs/issues/514)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/514) > - Feature request: provide a way to skip option parsing [\[#778](https://github-redirect.dependabot.com/shelljs/shelljs/issues/778)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/778) > - Switch to os.homedir\(\) when we move to v4+ [\[#683](https://github-redirect.dependabot.com/shelljs/shelljs/issues/683)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/683) > - Drop support for v0.12 [\[#647](https://github-redirect.dependabot.com/shelljs/shelljs/issues/647)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/647) > - feature: echo -n [\[#559](https://github-redirect.dependabot.com/shelljs/shelljs/issues/559)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/559) > - Don't kill the node process upon unexpected error [\[#483](https://github-redirect.dependabot.com/shelljs/shelljs/issues/483)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/483) > - Echo doesn't return value ending in a trailing newline [\[#476](https://github-redirect.dependabot.com/shelljs/shelljs/issues/476)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/476) > - Synchronous exec stalls permenantly when there is an error/w the shell [\[#7](https://github-redirect.dependabot.com/shelljs/shelljs/issues/7)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/7) ></table> ... (truncated) </details> <details> <summary>Changelog</summary> *Sourced from [shelljs's changelog](https://github.com/shelljs/shelljs/blob/master/CHANGELOG.md).* > ## [v0.8.2](https://github.com/shelljs/shelljs/tree/v0.8.2) (2018-05-08) > [Full Changelog](shelljs/shelljs@v0.8.1...v0.8.2) > > **Closed issues:** > > - High severity vulnerability in shelljs 0.8.1 [\[#842](https://github-redirect.dependabot.com/shelljs/shelljs/issues/842)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/842) > - Add test for ls\(\) on a symlink to a directory [\[#795](https://github-redirect.dependabot.com/shelljs/shelljs/issues/795)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/795) > - Harden shell.exec by writing the child process in a source file [\[#782](https://github-redirect.dependabot.com/shelljs/shelljs/issues/782)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/782) > - shell.exec\(\) doesn't respond correctly to config.fatal = true [\[#735](https://github-redirect.dependabot.com/shelljs/shelljs/issues/735)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/735) > - Merge 'exec: internal error' with ShellJSInternalError [\[#734](https://github-redirect.dependabot.com/shelljs/shelljs/issues/734)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/734) > - exec returning null from command [\[#724](https://github-redirect.dependabot.com/shelljs/shelljs/issues/724)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/724) > - Only Get Stderr from Exec [\[#371](https://github-redirect.dependabot.com/shelljs/shelljs/issues/371)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/371) > - Execute child.stdout.on before child.on\("exit"\) [\[#224](https://github-redirect.dependabot.com/shelljs/shelljs/issues/224)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/224) > > **Merged pull requests:** > > - Workaround codecov bug of miscalculation of coverage \(\#795\) [\[#838](https://github-redirect.dependabot.com/shelljs/shelljs/issues/838)](https://github-redirect.dependabot.com/shelljs/shelljs/pull/838) ([dwi2](https://github.com/dwi2)) > - Update doc comments and regenerate README.md. [\[#825](https://github-redirect.dependabot.com/shelljs/shelljs/issues/825)](https://github-redirect.dependabot.com/shelljs/shelljs/pull/825) ([Zearin](https://github.com/Zearin)) > - chore: update contributing guidelines [\[#817](https://github-redirect.dependabot.com/shelljs/shelljs/issues/817)](https://github-redirect.dependabot.com/shelljs/shelljs/pull/817) ([nfischer](https://github.com/nfischer)) > - chore\(lint\): don't allow excess trailing newlines [\[#816](https://github-redirect.dependabot.com/shelljs/shelljs/issues/816)](https://github-redirect.dependabot.com/shelljs/shelljs/pull/816) ([nfischer](https://github.com/nfischer)) > - Remove separate "internal error" from exec [\[#802](https://github-redirect.dependabot.com/shelljs/shelljs/issues/802)](https://github-redirect.dependabot.com/shelljs/shelljs/pull/802) ([freitagbr](https://github.com/freitagbr)) > > ## [v0.8.1](https://github.com/shelljs/shelljs/tree/v0.8.1) (2018-01-20) > [Full Changelog](shelljs/shelljs@v0.8.0...v0.8.1) > > **Closed issues:** > > - Exec failing with internal error when piping large output [\[#818](https://github-redirect.dependabot.com/shelljs/shelljs/issues/818)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/818) > - using sed to replace just the first occurrence of a string [\[#813](https://github-redirect.dependabot.com/shelljs/shelljs/issues/813)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/813) > > **Merged pull requests:** > > - Revert "refactor\(exec\): remove paramsFile \(\#807\)" [\[#819](https://github-redirect.dependabot.com/shelljs/shelljs/issues/819)](https://github-redirect.dependabot.com/shelljs/shelljs/pull/819) ([nfischer](https://github.com/nfischer)) > > ## [v0.8.0](https://github.com/shelljs/shelljs/tree/v0.8.0) (2018-01-12) > [Full Changelog](shelljs/shelljs@v0.7.8...v0.8.0) > > **Closed issues:** > > - Snyk vulnerability DB reporting command injection vulnerability in ShellJS [\[#810](https://github-redirect.dependabot.com/shelljs/shelljs/issues/810)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/810) > - chore: upgrade nyc [\[#803](https://github-redirect.dependabot.com/shelljs/shelljs/issues/803)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/803) > - Update CI to use Node v9 [\[#799](https://github-redirect.dependabot.com/shelljs/shelljs/issues/799)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/799) > - Link to FAQ wiki section in our issue template [\[#787](https://github-redirect.dependabot.com/shelljs/shelljs/issues/787)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/787) > - Is it possible to get a js library\(file\) for ShellJS [\[#776](https://github-redirect.dependabot.com/shelljs/shelljs/issues/776)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/776) > - 48, [\[#774](https://github-redirect.dependabot.com/shelljs/shelljs/issues/774)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/774) > - 47 [\[#773](https://github-redirect.dependabot.com/shelljs/shelljs/issues/773)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/773) > - Exec function calls JSON.stringify on command [\[#772](https://github-redirect.dependabot.com/shelljs/shelljs/issues/772)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/772) > - getting different result from terminal and with shelljs [\[#769](https://github-redirect.dependabot.com/shelljs/shelljs/issues/769)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/769) > - test\(\) does not support -w and -x options [\[#768](https://github-redirect.dependabot.com/shelljs/shelljs/issues/768)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/768) > - Snyk "high severity" issue [\[#766](https://github-redirect.dependabot.com/shelljs/shelljs/issues/766)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/766) ></table> ... (truncated) </details> <details> <summary>Commits</summary> - [`3b266d0`](shelljs/shelljs@3b266d0) 0.8.2 - [`3ce805e`](shelljs/shelljs@3ce805e) docs(changelog): updated by Nate Fischer [ci skip] - [`d7b6a1f`](shelljs/shelljs@d7b6a1f) Workaround codecov bug of miscalculation of coverage ([#795](https://github-redirect.dependabot.com/shelljs/shelljs/issues/795)) ([#838](https://github-redirect.dependabot.com/shelljs/shelljs/issues/838)) - [`9035b27`](shelljs/shelljs@9035b27) docs: fix typos and adjust markdown formatting ([#825](https://github-redirect.dependabot.com/shelljs/shelljs/issues/825)) - [`9077f41`](shelljs/shelljs@9077f41) Remove separate "internal error" from exec ([#802](https://github-redirect.dependabot.com/shelljs/shelljs/issues/802)) - [`62ce4ba`](shelljs/shelljs@62ce4ba) chore(lint): don't allow excess trailing newlines ([#816](https://github-redirect.dependabot.com/shelljs/shelljs/issues/816)) - [`2271080`](shelljs/shelljs@2271080) chore: update contributing guidelines ([#817](https://github-redirect.dependabot.com/shelljs/shelljs/issues/817)) - [`bbcfa5c`](shelljs/shelljs@bbcfa5c) docs(changelog): updated by Nate Fischer [ci skip] - [`7058d63`](shelljs/shelljs@7058d63) 0.8.1 - [`cb9cf27`](shelljs/shelljs@cb9cf27) Revert "refactor(exec): remove paramsFile ([#807](https://github-redirect.dependabot.com/shelljs/shelljs/issues/807))" ([#819](https://github-redirect.dependabot.com/shelljs/shelljs/issues/819)) - Additional commits viewable in [compare view](shelljs/shelljs@v0.7.8...v0.8.2) </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=shelljs&package-manager=npm_and_yarn&previous-version=0.7.8&new-version=0.8.2)](https://dependabot.com/compatibility-score.html?dependency-name=shelljs&package-manager=npm_and_yarn&previous-version=0.7.8&new-version=0.8.2) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. --- **Note:** This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit. You can always request more updates by clicking `Bump now` in your [Dependabot dashboard](https://app.dependabot.com). <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot. </details>
Signals removed,
tester changed,
build and decorator files removed
fixes #798