Skip to content

[12.0] [WIP] database_cleanup: migration to 12.0 - #1408

Merged
pedrobaeza merged 34 commits into
OCA:12.0from
mart-e:12.0-mig-database_cleanup
May 31, 2019
Merged

[12.0] [WIP] database_cleanup: migration to 12.0#1408
pedrobaeza merged 34 commits into
OCA:12.0from
mart-e:12.0-mig-database_cleanup

Conversation

@mart-e

@mart-e mart-e commented Oct 26, 2018

Copy link
Copy Markdown
Contributor

As part of the hacktoberfest, I am starting to migrate the module database_cleanup to 12.0 (hopefully nobody is working on it yet).

  • update version number
  • apply new README rules
  • squash OCA Transbot
  • migration scripts
  • date(time)
  • label/filter
  • SASS
  • test

@pedrobaeza pedrobaeza added this to the 12.0 milestone Oct 26, 2018
@OCA-git-bot OCA-git-bot mentioned this pull request Oct 26, 2018
32 tasks
@pedrobaeza

Copy link
Copy Markdown
Member

Great! No, nobody is working on this yet, so I assign you in #1368

@mart-e
mart-e force-pushed the 12.0-mig-database_cleanup branch 3 times, most recently from cc98141 to a432c49 Compare November 1, 2018 09:35
@mart-e

mart-e commented Nov 1, 2018

Copy link
Copy Markdown
Contributor Author

@pedrobaeza should be good now !

@mart-e
mart-e force-pushed the 12.0-mig-database_cleanup branch 2 times, most recently from e6562fe to ebeb03b Compare November 13, 2018 17:15
@gustavovalverde

Copy link
Copy Markdown
Member

Teste with a module migration use case from V11, which was also done in v12. Almost all seems like working OK, except for a weird behavior which I couldn't reproduce again when Purging all columns; after doing that it started complaining that my user (admin 1) didn't have enough priviliges when clicking on all menus. After a refresh a 403 Forbidden was raised.

After restoring a snapshot and doing the process again, this did not happened; and everything seems working as expected.

@gustavovalverde

Copy link
Copy Markdown
Member

Found the culprit; it's the password column from res.users. If purged it locks you out of the system. cc: @mart-e @pedrobaeza

@paulius-sladkevicius

Copy link
Copy Markdown

I've tested it out on the v12, works well. However I found password and password_crypt in the list of columns that wants to purge, so @gustavovalverde is right.

@pedrobaeza

Copy link
Copy Markdown
Member

#1507 should be included here.

@bealdav

bealdav commented Apr 8, 2019

Copy link
Copy Markdown
Member

@pedrobaeza Don't you think we can merge and add a comment in roadmap to cherry pick v11 changes .

@gustavovalverde

gustavovalverde commented Apr 8, 2019

Copy link
Copy Markdown
Member

@bealdav this shouldn't be merged until the passwords issue is solved (at least): #1408 (comment)

P.D.: I'm using it already, with this PR, knowing that I have to remove the password table from being purged. But someone can have a really bad moment not knowing this.

@pedrobaeza

Copy link
Copy Markdown
Member

Well, that comment means to not do it ever, and that changes are very important, even possibly solving @gustavovalverde's issue. If you want to retake the migration and add that PR, it's very straight-forward.

@mart-e
mart-e force-pushed the 12.0-mig-database_cleanup branch from ebeb03b to f237496 Compare April 8, 2019 15:52
@oca-clabot

Copy link
Copy Markdown

Hey @mart-e, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

@pedrobaeza

Copy link
Copy Markdown
Member

@mart-e has just pushed an updated branch. Please check your issue, @gustavovalverde

@mart-e

mart-e commented Apr 8, 2019

Copy link
Copy Markdown
Contributor Author

Hi,

Sorry for the lack of replies. I will try to fix the remaining issue.

@pedrobaeza

Copy link
Copy Markdown
Member

Thanks!

mart-e added a commit to mart-e/server-tools that referenced this pull request Apr 8, 2019
@mart-e
mart-e force-pushed the 12.0-mig-database_cleanup branch from 1b9383e to ab29152 Compare April 8, 2019 16:19
mart-e added a commit to mart-e/server-tools that referenced this pull request Apr 8, 2019
@mart-e

mart-e commented Apr 8, 2019

Copy link
Copy Markdown
Contributor Author

I have also picked the commits from #1507, I hope it was the only ones.

@mart-e
mart-e force-pushed the 12.0-mig-database_cleanup branch from ab29152 to 6a3a0c8 Compare April 9, 2019 06:55
mart-e added a commit to mart-e/server-tools that referenced this pull request Apr 9, 2019
@gustavovalverde

Copy link
Copy Markdown
Member

@bealdav and @paulius-sladkevicius could you guys check and approve if everything is working as expected?

leemannd pushed a commit to leemannd/server-tools that referenced this pull request Mar 19, 2021
leemannd pushed a commit to camptocamp/server-tools that referenced this pull request May 31, 2021
StephaneMangin pushed a commit to StephaneMangin/server-tools that referenced this pull request Sep 13, 2021
sebalix pushed a commit to sebalix/server-tools that referenced this pull request Sep 23, 2021
leemannd pushed a commit to camptocamp/server-tools that referenced this pull request Oct 18, 2021
leemannd pushed a commit to camptocamp/server-tools that referenced this pull request Oct 19, 2021
damdam-s pushed a commit to damdam-s/server-tools that referenced this pull request Dec 3, 2021
psugne pushed a commit to versada/server-tools that referenced this pull request Dec 23, 2021
StephaneMangin pushed a commit to StephaneMangin/server-tools that referenced this pull request Feb 1, 2022
damdam-s pushed a commit to damdam-s/server-tools that referenced this pull request Apr 14, 2022
sebalix pushed a commit to camptocamp/server-tools that referenced this pull request May 4, 2022
thomaspaulb pushed a commit to sunflowerit/server-tools that referenced this pull request Aug 17, 2022
JoelZilli pushed a commit to adhoc-dev/server-tools that referenced this pull request Nov 24, 2022
ajaniszewska-dev pushed a commit to ajaniszewska-dev/server-tools that referenced this pull request Jan 4, 2023
yankinmax pushed a commit to yankinmax/server-tools that referenced this pull request Feb 9, 2023
JasminSForgeFlow pushed a commit to ForgeFlow/server-tools that referenced this pull request Jul 28, 2023
letzdoo-js pushed a commit to letzdoo-js/server-tools that referenced this pull request Aug 25, 2023
alexeirivera87 pushed a commit to archeti-org/server-tools that referenced this pull request Sep 6, 2023
jjscarafia pushed a commit to adhoc-dev/server-tools that referenced this pull request Oct 10, 2023
hbrunn pushed a commit to hbrunn/server-tools that referenced this pull request Dec 23, 2023
augusto-weiss pushed a commit to adhoc-dev/server-tools that referenced this pull request Jan 10, 2024
PieterPaulussen pushed a commit to The-O-Team/server-tools that referenced this pull request Jul 18, 2024
nguyenminhchien pushed a commit to nguyenminhchien/server-tools that referenced this pull request Sep 27, 2024
nguyenminhchien pushed a commit to nguyenminhchien/server-tools that referenced this pull request Sep 27, 2024
nguyenminhchien pushed a commit to nguyenminhchien/server-tools that referenced this pull request Oct 10, 2024
nguyenminhchien pushed a commit to nguyenminhchien/server-tools that referenced this pull request Oct 21, 2024
SiesslPhillip pushed a commit to grueneerde/OCA-server-tools that referenced this pull request Nov 20, 2024
Syncing from upstream OCA/server-tools (16.0)
bizzappdev pushed a commit to bizzappdev/server-tools that referenced this pull request Oct 27, 2025
bizzappdev pushed a commit to bizzappdev/server-tools that referenced this pull request Nov 25, 2025
nicomacr pushed a commit to adhoc-dev/server-tools that referenced this pull request Nov 26, 2025
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.