Skip to content

[10.0][MIG] base_search_fuzzy - #722

Merged
lasley merged 7 commits into
OCA:10.0from
LasLabs:release/10.0/base_search_fuzzy
Apr 11, 2017
Merged

[10.0][MIG] base_search_fuzzy#722
lasley merged 7 commits into
OCA:10.0from
LasLabs:release/10.0/base_search_fuzzy

Conversation

@lasley

@lasley lasley commented Feb 1, 2017

Copy link
Copy Markdown
Contributor

Upgrade base_search_fuzzy to v10:

  • Rename manifest
  • Update openerp references to odoo
  • Bump version
  • Upgrade api usages

Christoph Giesel and others added 6 commits February 1, 2017 08:49
@lasley
lasley force-pushed the release/10.0/base_search_fuzzy branch from 0cbaf8a to 419c5a3 Compare February 1, 2017 16:59
@pedrobaeza pedrobaeza mentioned this pull request Feb 1, 2017
63 tasks
@lasley
lasley force-pushed the release/10.0/base_search_fuzzy branch from 419c5a3 to 5d0bcbb Compare February 1, 2017 17:11
@lasley lasley added this to the 10.0 milestone Feb 1, 2017
@lasley
lasley force-pushed the release/10.0/base_search_fuzzy branch 4 times, most recently from e0b53d8 to 4bcfcbf Compare February 1, 2017 19:31
@lasley
lasley force-pushed the release/10.0/base_search_fuzzy branch from 4bcfcbf to 55fc4fe Compare February 1, 2017 19:41
Comment thread base_search_fuzzy/models/ir_model.py Outdated

if left in model._fields:
column = '%s.%s' % (table_alias, expression._quote(left))
query = '(%s %s %%s)' % (column, sql_operator)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

%%s should be replaced with model._fields[left].column_format on this and ln 31

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Did you review your own PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hah more of just a note to remember to make this change. I was randomly digging around in the expression code for an unrelated thing, saw column_format, and remembered this code. Making the change now!

@StefanRijnhart StefanRijnhart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Migration LGTM and tests run successfully. Thanks!

@lasley
lasley force-pushed the release/10.0/base_search_fuzzy branch from 7aac463 to 18f6a5e Compare February 21, 2017 20:45
@lasley

lasley commented Apr 7, 2017

Copy link
Copy Markdown
Contributor Author

@tedsalmon please review

@tedsalmon tedsalmon left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM 👍 ! A few small review notes were left but they're likely things that existed pre-migration :)

Comment thread base_search_fuzzy/README.rst Outdated
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/server-tools/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed feedback.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Old verbiage

Comment thread base_search_fuzzy/models/ir_model.py Outdated
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging

from odoo import models, api

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Alphabetize import order

Comment thread base_search_fuzzy/models/ir_model.py Outdated
params = right
else: # Must not happen
raise ValueError(
"Invalid field %r in domain term %r" % (left, leaf))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Exceptions should be internationalized, right?

@lasley

lasley commented Apr 11, 2017

Copy link
Copy Markdown
Contributor Author

Thanks @tedsalmon - comments attended to

* Rename manifest
* Update openerp references to odoo
* Bump version
* Upgrade api usages
@lasley
lasley force-pushed the release/10.0/base_search_fuzzy branch from 56a3a5b to 390a952 Compare April 11, 2017 00:14
@lasley
lasley merged commit 731e07a into OCA:10.0 Apr 11, 2017
@lasley
lasley deleted the release/10.0/base_search_fuzzy branch April 11, 2017 02:13
SiesslPhillip pushed a commit to grueneerde/OCA-server-tools that referenced this pull request Nov 20, 2024
Syncing from upstream OCA/server-tools (12.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants