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

update to nette 3.0 #304

Closed
wants to merge 4 commits into from
Closed

update to nette 3.0 #304

wants to merge 4 commits into from

Conversation

slepic
Copy link
Contributor

@slepic slepic commented Sep 24, 2019

I have updated composer requirement of nette to 3.0 and php to 7.0 (needed by nette anyway). At this point I have fixed every error reported by running composer test, except for those cases mentioned in the TODO below (I have actualy found ways to modify vendor packages to make those problems go away, but to fix it properly it has to be done on the grido side, but I havent found those ways yet.).
Let me first ask, are you willing to merge this (when completed) and release a new version of grido compatible with nette 3.0. Or would you prefer if someone else maintained this package, so I better off with my fork?

TODO:

  • for some reason, in tests, RouteList contains itself as a route, resulting in infinite loop (not grido issue).
  • in tests, nette often thinks that there is a csrf attack and makes redirection instead of handlig the requested action. (looks like missing @crossOrigin annotation, or bad sameSite detection)
  • dont use dev-master versions (kdyby packages) in composer.json

Unfortunately there are too many stupid people
Closes #294
@o5
Copy link
Owner

o5 commented Sep 24, 2019

@slepic I've no problem with merge with green Travis.

@slepic
Copy link
Contributor Author

slepic commented Sep 24, 2019

Ok, thank you. I will let you know when i fix everything.
So far I can tell that the problem with infinite loop in router is caused by a bug in kdyby/console
Kdyby/Console#84
I had increased dependency on kdyby/console to dev-master since there is no stable version for nette 3.0 yet. I suppose when it will be released, this bug will be gone. We should wait to have compatible kdyby packages in non-dev versions anyway...

@slepic
Copy link
Contributor Author

slepic commented Sep 25, 2019

ok so everything should be fine now, except these kdyby packages dont have stable release for nette 3.0:

  • kdyby/console
  • kdyby/doctrine
  • kdyby/events

so they are on dev-master

and the out of memory problem coming from kdyby/console infinite loop in router is solved in Kdyby/Console#85
so once they merge this, the build of this repo should be fixed as well.

There is also a workaround for this problem:
Kdyby/DoctrineCache#23
so once that one is solved, the workaround could be removed.
066c9f5#diff-2e76b9f7fcf72fd68fffc5fb11681690R109

@slepic slepic changed the title Work In Progress: update to nette 3.0 update to nette 3.0 Sep 25, 2019
@slepic
Copy link
Contributor Author

slepic commented Sep 30, 2019

@o5 The kdyby/console issue is merged. Can you please rerun travis build to see if everything works now? Seems I have no right to do so (unless i'm just blind)

@o5
Copy link
Owner

o5 commented Sep 30, 2019

@slepic build has been restarted but still fails :/

@slepic
Copy link
Contributor Author

slepic commented Oct 10, 2019

@o5 ok, so

@o5
Copy link
Owner

o5 commented Nov 4, 2019

@slepic Sorry for delay. Could you please polish your commits?

@slepic
Copy link
Contributor Author

slepic commented Nov 4, 2019

@o5 Could you be more specific, please? :)

@o5
Copy link
Owner

o5 commented Nov 4, 2019

I meant squash what is possible, better commit message (without travis vol 2, wip, etc)

@slepic
Copy link
Contributor Author

slepic commented Nov 4, 2019

@o5 Oh sorry, but I don't want to or even know how to mess up with commit history... Can't you just do it on merge? Github can handle this for you. Just squash it into one commit and let the message be nette 3.0 support or alike...

@sasule
Copy link
Contributor

sasule commented Nov 4, 2019

@slepic Here is a nice tutorial on how to make a squash: https://stackoverflow.com/questions/5189560/squash-my-last-x-commits-together-using-git
When You are in squash process then you see all messages, you can delete them and write a new one which will be used.

When you are finished with work on new commit message you have to force push to the repository.

@slepic
Copy link
Contributor Author

slepic commented Nov 5, 2019

@sasule Thanks, I would have eventualy figurde it out. I just really dont like to make changes to already published commits.

@o5 so it's squashed into one commit now. The individual commits didn't really have their own isolated scope....

.travis.yml Outdated
@@ -21,4 +20,4 @@ script:
- vendor/bin/tester -p php $COVERAGE tests/

after_script:
- if [ $TRAVIS_PHP_VERSION = '5.6' ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.xml; fi
- if [ $TRAVIS_PHP_VERSION = '5.6' ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.xml; fi
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This condition is always false now and project will be without code-coverage report.

@slepic slepic requested a review from o5 November 7, 2019 09:05
@o5
Copy link
Owner

o5 commented Nov 7, 2019

@slepic Change looks good, but there is something in Travis log:

Notifying that no code coverage data is available for repository "g/o5/grido" and revision "ac3dac873010b07d28b13723dfeea35c48043ea4"... Done

Scrutinizer reports Waiting for External Code Coverage.

@slepic
Copy link
Contributor Author

slepic commented Nov 7, 2019

@o5 Do you have any idea what that means? Seems to me it should be ok.

@o5
Copy link
Owner

o5 commented Nov 7, 2019

@slepic Unfortunately don't in this time.

@o5
Copy link
Owner

o5 commented Jan 5, 2020

Merged 7fbb263

@o5 o5 closed this Jan 5, 2020
@slepic
Copy link
Contributor Author

slepic commented Mar 27, 2020

@o5 A bit late, but anyway, thank you very much :) Could I yet ask you to tag a new release? We are already using the master head on one application in production and another one is about to be released, but I don't wanna keep it on dev-master, although we keep our packages locked...

@o5
Copy link
Owner

o5 commented Mar 27, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants