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

Async #378

Merged
merged 59 commits into from
Oct 17, 2023
Merged

Async #378

merged 59 commits into from
Oct 17, 2023

Conversation

StorytellerCZ
Copy link
Member

Continuation of #361

@StorytellerCZ
Copy link
Member Author

Now we mainly need to add test suite for async.

Copy link
Member

@jankapunkt jankapunkt left a comment

Choose a reason for hiding this comment

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

somehow we ended up with two meteor projects for testing, someapp and testapp and I think someapp has accidentally been added.

.DS_Store Outdated Show resolved Hide resolved
someapp/packages/roles Outdated Show resolved Hide resolved
Also adjusted Meteor versions for test and package
@StorytellerCZ StorytellerCZ added this to the Release 4.0 milestone Sep 23, 2023
@StorytellerCZ
Copy link
Member Author

OK, figured out the tests, now it is just about converting the test suite to it.

@StorytellerCZ
Copy link
Member Author

StorytellerCZ commented Sep 24, 2023

Got all the async tests running.
I have removed migration tests which I don't feel need to be in the async tests as they should have been run before upgrading to Meteor 3, maybe we should mention that in the readme.

There seems to be a bug in the async version of detecting roles cycles in _addRoleToParentAsync function, which seem to break these tests. Right now I don't see what it could be as the async transition seems to have been done well. Fixing that I think could fix at least half the failing tests. @bratelefant any ideas?

@bratelefant
Copy link
Contributor

Got all the async tests running. I have removed migration tests which I don't feel need to be in the async tests as they should have been run before upgrading to Meteor 3, maybe we should mention that in the readme.

There seems to be a bug in the async version of detecting roles cycles in _addRoleToParentAsync function, which seem to break these tests. Right now I don't see what it could be as the async transition seems to have been done well. Fixing that I think could fix at least half the failing tests. @bratelefant any ideas?

Guess I fixed this, cf #380

Sometimes it's the small things that matter ;)

@jankapunkt
Copy link
Member

Yup, tests are fixed, thanks @bratelefant 🙌

@StorytellerCZ from my end it's good, should we do a final review or do you think it's fine?

@StorytellerCZ
Copy link
Member Author

I think we might need client side tests for async as well, but I think it is fine. I will prepare a feature release once I get some time.

@StorytellerCZ
Copy link
Member Author

@jankapunkt so the client tests were much easier than I thought, honestly I kind of find them lacking, but that is for another time. For me we can merge and release this as a new feature version. I will have to look into re-generating the docs with this.

Copy link
Member

@jankapunkt jankapunkt left a comment

Choose a reason for hiding this comment

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

Ltgm

@StorytellerCZ StorytellerCZ merged commit 5fd6694 into master Oct 17, 2023
@StorytellerCZ StorytellerCZ deleted the feature/async branch May 4, 2024 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants