Closed coltoneshaw closed 3 years ago
This is before the redux package is updated you'll see this error in the console.
Sorry, didn't realize re-naming my branch closed this PR.
Thanks @coltoneshaw :+1:
Do you mind running npm install
in the webapp
directory of the plugin, and pushing the changes that get applied to the package-lock.json
file?
@mickmister - Done! Let me know how that looks.
@coltoneshaw Did you happen to run npm i
with an npm version >= 7? If this is the case, can you actually revert the package-lock changes, and re-run the npm i
command with a npm
version less than 7? We want to convert the plugins to use the newer version of npm in one effort, and this may complicate things with the logistics of the effort. You can toggle the npm version you are using locally using nvm
coltonshaw@Coltons-MacBook-Pro mattermost-plugin-custom-attributes-1.3.0 % npm -v
7.6.0
coltonshaw@Coltons-MacBook-Pro mattermost-plugin-custom-attributes-1.3.0 %
@mickmister - I did, didn't realize that would cause an issue here. Do you have a specific version you'd like to see used?
Actually this should be fine as long as the plugin compiles correctly with npm 7, which it does since you verified the fix works with this change
It works in the releases v1.3, but since then I believe the package dependencies for redux changed and caused it to break. I believe this was slotted for v1.4. The current repo will error on team search, but the released version works fine.
Yeah, that's expected from that I've seen. The new format stores a whole lot more information in it.
@DHaussermann Test steps here should be to use the feature as shown in the PR description's screenshot, and verify the console error does not appear on this version. Light regression testing would be desired too.
@DHaussermann @mickmister i tested that and I'm not getting that error While Searching the Team, but in the search i got only 1 team name as Warrior9 and its my own team so is it right or there should be other team name visible on the search? here is the video of that.
Summary
fixes #68 - Fix to resolve the outdated redux package. Specifically for
searchTeams
. Tested locally and there are no errors.The plugin is currently built to take
searchTeams(term, options)
however the version of redux 5.26 doesn't take that. It looks like previously it tookexport function searchTeams(term: string, page?: number, perPage?: number)
https://github.com/mattermost/mattermost-redux/commit/106c35967b1a92140fc86dfb442d88520c0706435.33 redux
searchTeams
- https://github.com/mattermost/mattermost-redux/blob/3d1028034d7677adfda58e91b9a5dcaf1bc0ff99/src/actions/teams.ts#L142Recreate
make dist