Skip to content
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

Add jeff philapy #137

Draft
wants to merge 121 commits into
base: devel
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
ba0a4cc
Update README to try and stop repeat issues
ajdonnison Oct 15, 2019
c035041
Fixes #98 - fixed the url regex
ajdonnison Nov 6, 2019
3119deb
Merge branch 'devel' for 2.2.0 release
ajdonnison Mar 12, 2020
a68205c
Created example unit test
jphilapy Sep 25, 2020
8932509
Setup codeception
jphilapy Sep 25, 2020
5b79ae8
Created acceptance test to make sure login form is working
jphilapy Sep 25, 2020
a78858c
configured new paths
jphilapy Sep 25, 2020
48dd6b9
configured where acceptance tests take place
jphilapy Sep 25, 2020
e056459
added some bits of help
jphilapy Sep 25, 2020
f503b06
changed the name of the acceptance test
jphilapy Sep 25, 2020
9b9eefa
test to show app has install aborted message
jphilapy Sep 25, 2020
0c855d7
Test that user can signin
jphilapy Sep 25, 2020
d1f864f
added test to see if form on login page
jphilapy Sep 25, 2020
9f239d2
removed uneeded commetn
jphilapy Sep 25, 2020
8e3d950
renamed
jphilapy Sep 25, 2020
53cae9e
minor change
jphilapy Sep 28, 2020
80fa794
Added an acceptance test for default modules
jphilapy Sep 28, 2020
70c85e3
added new factory
jphilapy Sep 28, 2020
32dc6d9
mysql 8 != empty date field queries. I had to set them to query a null
jphilapy Sep 28, 2020
c54578f
modified tests so that they will skip if the login test fails
jphilapy Sep 28, 2020
8b9f964
skip test if user cannot login
jphilapy Sep 28, 2020
44688a1
modified pass
jphilapy Sep 28, 2020
b79f826
added sql for building testing db
jphilapy Sep 28, 2020
3c58590
added db connection
jphilapy Sep 28, 2020
ddfdaa2
changed login cred
jphilapy Sep 28, 2020
805fdd8
Separated SQLAuthenticater into separate file
jphilapy Sep 28, 2020
fd2961a
reworking the class
jphilapy Sep 28, 2020
1a3936a
revert
jphilapy Sep 29, 2020
9213714
added new autoloader
jphilapy Sep 29, 2020
60b5310
currently not useful
jphilapy Sep 29, 2020
e5b125a
changed order of help topics
jphilapy Sep 29, 2020
98ad609
made class easier to test
jphilapy Sep 29, 2020
ff52c0a
used clear test name
jphilapy Sep 29, 2020
1cbfa15
clearer test name
jphilapy Sep 29, 2020
cd8c240
Changed function name to indicate the purpose is to create object
jphilapy Sep 29, 2020
da6556d
tests for auth related stuff... see class call in test
jphilapy Sep 29, 2020
bbcd833
added help on creating tests
jphilapy Sep 29, 2020
2cbbfab
Working on new tests
jphilapy Sep 29, 2020
efca4a8
Added check for unit test to allow for by pass
jphilapy Sep 29, 2020
3bb4cbc
re worked test
jphilapy Sep 29, 2020
9034de2
call caused function to be defined twice
jphilapy Sep 29, 2020
00fe984
fixed issue with ldap test not running
jphilapy Sep 30, 2020
92bc907
Fixed issue with code coverage not finding directories
jphilapy Oct 1, 2020
954bf60
added code coverage help
jphilapy Oct 1, 2020
d08d104
added htaccess to deny access to tests via browser
jphilapy Oct 1, 2020
3288911
not needed
jphilapy Oct 1, 2020
26348f4
misc
jphilapy Oct 1, 2020
015ed08
required class files to test
jphilapy Oct 1, 2020
c0b82a5
not needed
jphilapy Oct 1, 2020
baf4f38
moved new module call to different method
jphilapy Oct 1, 2020
8e7f22c
cleaned up test file and added new tests
jphilapy Oct 1, 2020
f709567
adding new test
jphilapy Oct 1, 2020
bb9f96c
specified correct db name in sql
jphilapy Oct 7, 2020
4b0e3e0
specified correct db name in sql comment
jphilapy Oct 7, 2020
7688885
Merge branch 'add-jeff-philapy' of https://github.com/jphilapy/dotPro…
jphilapy Oct 7, 2020
64d7caa
updated composer.lock
jphilapy Oct 7, 2020
a6bbc30
changed creds and renamed folder
jphilapy Oct 7, 2020
8a74512
no need to do database stuff here.
jphilapy Oct 7, 2020
97db156
put db config here, but disabled because it makes tests too slow
jphilapy Oct 7, 2020
c6b8a12
Sign in test can only run if we see a login form
jphilapy Oct 7, 2020
da190dc
updated composer project name for pr purposes
jphilapy Jan 31, 2021
a1a3c5e
Revert "mysql 8 != empty date field queries. I had to set them to que…
jphilapy Jan 31, 2021
022d05a
added new line
jphilapy Feb 15, 2021
d019fb6
fixed spacing issue with comment
jphilapy Feb 15, 2021
d4257b1
removed installCest, seems more trouble than worth
jphilapy Feb 15, 2021
6b86376
updated lock file
jphilapy Jun 10, 2021
609da4d
updated composer.lock
jphilapy Oct 7, 2020
472282a
changed creds and renamed folder
jphilapy Oct 7, 2020
600ff78
no need to do database stuff here.
jphilapy Oct 7, 2020
19f7eeb
put db config here, but disabled because it makes tests too slow
jphilapy Oct 7, 2020
e6edf38
Sign in test can only run if we see a login form
jphilapy Oct 7, 2020
aa3c0d2
updated composer project name for pr purposes
jphilapy Jan 31, 2021
fdad0c9
Revert "mysql 8 != empty date field queries. I had to set them to que…
jphilapy Jan 31, 2021
c0f0cf1
added new line
jphilapy Feb 15, 2021
3486668
fixed spacing issue with comment
jphilapy Feb 15, 2021
fd07d81
removed installCest, seems more trouble than worth
jphilapy Feb 15, 2021
6c7ab8c
updated lock file
jphilapy Jun 10, 2021
49e6216
Merge branch 'add-jeff-philapy' of https://github.com/jphilapy/dotPro…
jphilapy Jun 10, 2021
13e4d16
ignoring phpstorm stuff
jphilapy Jun 10, 2021
693e021
added docs directory and workbench model
jphilapy Jul 1, 2021
2cb2b2c
I get error: (Incorrect DATETIME value: ''). Setting it to null fixe…
jphilapy Jul 1, 2021
2756aa1
changing from task_end_date = '' to task_end_date = NULL worked
jphilapy Jul 1, 2021
53c5308
disabled errors and added notes file
jphilapy Jul 1, 2021
930dfb6
added notes about system compatibility
jphilapy Jul 1, 2021
79c4895
added a couple of notes about testing
jphilapy Jul 1, 2021
9b8865e
added Global Config Module, set all tests, needing logins, with globa…
jphilapy Jul 1, 2021
3f58f5b
setup files to be ignored, including codeception config files
jphilapy Feb 1, 2022
759b6fd
Merged changes in
jphilapy Feb 1, 2022
9e0ee6e
start of new unit tests - practice
jphilapy Feb 1, 2022
98cf033
Move SQLAuthenticator to its own file
jphilapy Feb 1, 2022
c50a32d
set user password to passwd
jphilapy Feb 1, 2022
bd4ab1d
Misc
jphilapy Feb 1, 2022
f59130b
misc
jphilapy May 19, 2022
0af3603
misc
jphilapy May 19, 2022
e58685b
Updated notes
jphilapy May 30, 2022
ca5c15a
updated host
jphilapy May 30, 2022
cc1937d
For doing manual setup of the db
jphilapy May 30, 2022
3706cb0
reinstalled codeception
jphilapy Jun 18, 2022
ee9ca2a
Adding basic template files for configuring tests
jphilapy Jun 18, 2022
3bc302c
Removed debug code from index, added insert to manual_setup
jphilapy Jun 18, 2022
1992b83
dotproject.sql can correctly populate database table for testing
jphilapy Jun 18, 2022
1a5049a
Removed failing tests because they seemed irrelevant for now, at least
jphilapy Jun 18, 2022
e0f9a59
Added in the faker library
jphilapy Jun 18, 2022
9335065
Adding in faker to make company name
jphilapy Jun 18, 2022
cadde54
Merge branch 'master' into add-jeff-philapy
jphilapy Jun 18, 2022
c6bf3d0
Merge branch 'devel' of https://github.com/dotproject/dotProject into…
jphilapy Jun 18, 2022
6d4250c
Misc
jphilapy Jun 20, 2022
2e5204a
Misc
jphilapy Jun 21, 2022
ef4c82f
Refactored CompaniesModulesCest, worked on canUpdateCompany test
jphilapy Jul 9, 2022
5706660
Working on testing update of company
jphilapy Jul 9, 2022
094bac2
Working on delete company test
jphilapy Jul 9, 2022
16cd5a1
removing password from the acceptance suite file, and enabling phpdotenv
jphilapy Jul 15, 2022
1c409c1
corrected db admin login field names, added permissions to dotproject…
jphilapy Jul 15, 2022
0a34f49
Updating the readme file
jphilapy Oct 28, 2022
ee49058
Updating the readme file
jphilapy Oct 28, 2022
7616e10
Updating the readme
jphilapy Oct 28, 2022
b921cd5
Fixed issue with: syntax to use near 'DESC LIMIT
jphilapy Oct 29, 2022
45cf7c5
Update readme
jphilapy Oct 29, 2022
f32dd1c
Updated Readme with Laravel Valet link
jphilapy Oct 29, 2022
e482a75
update readme, add comments to where code initially breaks on php 8
jphilapy Oct 29, 2022
9085c03
Trying to setup to use namespaces
jphilapy Oct 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .env

This file was deleted.

3 changes: 3 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DB_NAME=
DB_USER=
DB_PASSWORD=
7 changes: 7 additions & 0 deletions .env.testing.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TEST_DB_HOST=
TEST_DB_NAME=
TEST_DB_USER=
TEST_DB_PASS=

TEST_ADMIN_USER=
TEST_ADMIN_PASS=
42 changes: 41 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,46 @@ files/*
!files/temp/index.html
lib/ezpdf/fonts/php_*
/nbproject/private/
/nbproject
/dotProject/
!/modules/files/

/vendor/

##### IDE #####
# phpstorm
.idea/

# netbeans
nbproject/
build/
nbbuild/
dist/
nbdist/
nbactions.xml
nb-configuration.xml

# vscode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix

# codeception
tests/acceptance.suite.yml
tests/functional.suite.yml
tests/unit.suite.yml

# php documentation stuff
.phpdoc/*

# env
.env
.env.testing
39 changes: 39 additions & 0 deletions ORIGINAL_README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# dotProject

dotProject is an open source project management system written in PHP.

It originally started in 2001 by dotMarketing on SourceForge and has
been under the watchful eye of the current dotProject team since around December 2002.

## Installing/Upgrading

**NOTE** The `devel` branch is where all the development happens. If you want the latest and greatest with all relevent bug fixes between releases, then download from https://github.com/dotproject/dotProject/archive/devel.zip

`master` tracks the current release.

**The Quick Way**: Point your browser to the `install` directory.

## Support

Support forums are at http://forums.dotproject.net/index.php

Bug reports and other issues can be lodged on GitHub at https://github.com/dotproject/dotProject/issues

IRC channel is irc://irc.freenode.net/dotproject on `#dotproject` on `irc.freenode.net`

## License

As of version 2.0, dotProject is released under GPL.
1.0.2 and previous versions were released under BSD license.
Parts of dotProject include libraries from other projects which are used and re-released under their original licence.

## Docker composer support

The latest devel branch now includes a simple docker-compose.yml file and support files. These will allow you to run dotProject by running:

`docker-compose up`

This will set up an nginx container, a phpfpm container and a mariadb container and point the web server to the base directory of dotProject. All you need to do after that is point your browser to http://localhost/

`docker-compose down` will retain any data you have created. If you want to start again from a clean slate, use `docker-compose down -v` to remove the database volume.

49 changes: 19 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,28 @@
# dotProject
# README

dotProject is an open source project management system written in PHP.
## Goal
- Put acceptance tests in place
- Refactor code so that it can be unit tested
- Put unit tests in place
- Upgrade to work with later versions of PHP

It originally started in 2001 by dotMarketing on SourceForge and has
been under the watchful eye of the current dotProject team since around December 2002.

## Installing/Upgrading
## System Requirements
- PHP up to version 7.4
- Mysql up to version 8

**NOTE** The `devel` branch is where all the development happens. If you want the latest and greatest with all relevent bug fixes between releases, then download from https://github.com/dotproject/dotProject/archive/devel.zip
## Other Notes
My current setup to run Dotproject is on a Mac using [Laravel Valet](https://laravel.com/docs/9.x/valet).

`master` tracks the current release.
In the terminal and in the current directory of the project:
- type: valet link
- type: valet isolate php@7.4
- then in the browser: http://dotproject.test

**The Quick Way**: Point your browser to the `install` directory.
Notes on [running tests](./tests/help.md). Tests are in no way complete or nearing anything useful. They are there for the purpose of learning to test.
For what it is worth, codeception is setup so that developers can jump in start writing tests.

## Support

Support forums are at http://forums.dotproject.net/index.php

Bug reports and other issues can be lodged on GitHub at https://github.com/dotproject/dotProject/issues

IRC channel is irc://irc.freenode.net/dotproject on `#dotproject` on `irc.freenode.net`

## License

As of version 2.0, dotProject is released under GPL.
1.0.2 and previous versions were released under BSD license.
Parts of dotProject include libraries from other projects which are used and re-released under their original licence.

## Docker composer support

The latest devel branch now includes a simple docker-compose.yml file and support files. These will allow you to run dotProject by running:

`docker-compose up`

This will set up an nginx container, a phpfpm container and a mariadb container and point the web server to the base directory of dotProject. All you need to do after that is point your browser to http://localhost/

`docker-compose down` will retain any data you have created. If you want to start again from a clean slate, use `docker-compose down -v` to remove the database volume.
---
For running it in docker, see the [Original DotProject Readme](./ORIGINAL_README.md)

2 changes: 1 addition & 1 deletion base.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
}}} */

ini_set('display_errors', 1);
ini_set('display_errors', 0);

if (defined('E_DEPRECATED')) {
error_reporting(E_ALL & ~(E_DEPRECATED|E_NOTICE|E_STRICT));
Expand Down
Loading