[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2024-04-23 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

Mark Hofstetter  changed:

   What|Removed |Added

 CC||k...@trust-box.at

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2024-01-28 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

Katrin Fischer  changed:

   What|Removed |Added

 CC||emily.lamancusa@montgomeryc
   ||ountymd.gov,
   ||m.de.r...@rijksmuseum.nl,
   ||n...@bywatersolutions.com,
   ||tomasco...@gmail.com

--- Comment #16 from Katrin Fischer  ---
I don't want this sitting for too long without a decision/solution to not block
the depending development, but I'd really like to get some more eyes/brains on
it.
Adding some more in CC, please feel free to also ask on IRC/mailing list/IRC
meeting as you see fit.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2024-01-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

--- Comment #15 from Pedro Amorim  ---
Thanks for the input Katrin, these are fair points.

> * No FK constraints on database level.
I'm not sure what the relevant disadvantages of this apply here. Possibility
for stuff like child rows without corresponding parent rows for example, this
can (and should) be prevented by being enforced through code at the application
level.

> * No proper datatypes. We store everything as a varchar. This can complicate
> validation and reporting.
Datatypes (and validation) is another thing we should handle at application
level imo for these use cases (related metadata tables).
When adding a new additional_field/patron_attribute_type the user should also
be able to specify its data type (text, number, currency, date, av_list,
relationship, etc).
This will require a overhaul to patron_attribute_types, yes, but an overhaul is
already required anyway (merging additional_fields and patron_attribute_types).

> * Ease of writing reports with all columns (libraries have repeatedly told
> me they find it hard)
It's already the case for additional_fields and patron_attribute_types, we're
not introducing a new pattern in terms of ease (or lack thereof) of writing
reports. This could possibly be mitigated by having a few more examples in the
wiki people can copy off from?

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2024-01-22 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

--- Comment #14 from Katrin Fischer  ---
So this feels no like we are trying to implement something like inheritance in
the database. We have a "base" ticket table and we have an additional table for
any specifics. I think I get the idea now.

The idea is very similar to the illrequestattributes, more than to the
patron_attributes. The patron_attributes implement limited functionality for
workflows, while the illrequestattributes are the data storage for any
additional data a backend might need to function properly.

At the moment I believe we are thinking to unify the functionality of:
* OPAC problem reports
* Catalog concerns
* 

As always there is pros and cons to everything. The problems I see with
additional attributes in their key/value form are:
* No FK constraints on database level.
* No proper datatypes. We store everything as a varchar. This can complicate
validation and reporting.
* Ease of writing reports with all columns (libraries have repeatedly told me
they find it hard)

I think there is a use case here... but I am not totally persuaded yet that
it's strong enough for the examples given.

For the reasons mentioned above, I feel like at least biblio_id might be better
off as a column allowing for FK etc. and easy joining with other tables. And
logging it could be of some use for the problem reports too (a lot of
opac-pages are "biblio record" based (detail, isbd, marc, request,
article_request ...) and logging it could allow for interesting reporting)

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2024-01-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

--- Comment #13 from Jonathan Druart  ---
Then maybe this needs to be abstracted, to make it more flexible.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2024-01-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

--- Comment #12 from Pedro Amorim  ---
(In reply to Jonathan Druart from comment #11)
> Then maybe you need 2 different DB tables.
> 
> One perl module (generic ticket) that will be inherited by the two specific
> ticket modules.
> 
> It's not a bad thing to have different DB tables when your objects are
> different. Then if you need repeatable fields, you create yet another table
> with  1-n relationship. It's... relational models and database normalization
> ;)

Yes but you're highlighting exactly why this approach is worth considering in
the first place. Why re-implement anything that's already been implemented at
the additional_fields level?

We already have patron_custom_attributes and additional_fields, 2
implementations of what is essentially the same thing, but now need to be
maintained and supported individually. This is exactly what we're aiming to
prevent here: implement yet another redundant metadata table that needs to do
something that's already implemented in Koha.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2024-01-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

--- Comment #11 from Jonathan Druart  ---
Then maybe you need 2 different DB tables.

One perl module (generic ticket) that will be inherited by the two specific
ticket modules.

It's not a bad thing to have different DB tables when your objects are
different. Then if you need repeatable fields, you create yet another table
with  1-n relationship. It's... relational models and database normalization ;)

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2024-01-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

--- Comment #10 from Pedro Amorim  ---
Hey, adding my 2 cents here in what I hope to be a constructive addition.

(In reply to Jonathan Druart from comment #9)
> The purpose of this table/ft was to add specific data. Flagging a fields as
> "is mandatory for the system to work correctly" is wrong by design IMO. It
> should be a column in the original table.

I can definitely see where this argument is coming from, although I don't 100%
agree with it being wrong by design. This is still specific data, it's just
additional fields that Koha's code will rely on and can't be removed.

Some of the alternatives here are:
- Add the columns page_url and biblio_id to the ticket table, even though only
ticket.source=catalog will use the biblio_id column and only
ticket.source=opac_problem will use the page_url, this would get more and more
confusing and hard to maintain as we go in the future (i.e. every new single
type of ticket will potentially require new niche fields for their own).

- Add a new 'tickets_attributes' table (and have this be the 4th relational
metadata table we have in Koha, alongside additional_fields, patron_attributes
and illrequestattributes. This would allow for a ticket of source=catalog to
have the biblio_id and the ticket of source=opac_problem to have the page_url,
without adding new columns to the table and making it flexible enough for
future ticket types (sources). The problem here is that all this logic already
exists in additional_fields.

- Have a 'other_stuff' column in the tickets table that would store a json
object that could store whatever in it and logic would handle what it wants to
retrieve/store depending on the ticket.source (like plugin_data). This is not
ideal either.



The advantages of having an additional_field:is_system are:
- This is_system additional_field will automatically benefit from all the
features from additional_fields (it may potentially be an authorized value
list, repeatable, searchable, filterable, and so on) AND it would not pollute
the tickets table (or any other table that would need to make use of this) with
niche fields only used by some instantiations of the table, and not others.
- Existing code from additional_fields is reused, thus any future fixes and
enhancements also benefit this is_system additional_field. Whereas in any of
the alternatives above if you need a specific field to be searchable on the
datatable for example you will need to update the data table code. By using the
additional_fields with is_system, the programmer just needs to set the field as
searchable and nothing else needs to be done, again, benefiting from the
additional_fields native features.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2024-01-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

Martin Renvoize  changed:

   What|Removed |Added

 CC||pedro.amo...@ptfs-europe.co
   ||m

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2024-01-03 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

Jonathan Druart  changed:

   What|Removed |Added

 CC||jonathan.druart+koha@gmail.
   ||com

--- Comment #9 from Jonathan Druart  ---
The purpose of this table/ft was to add specific data. Flagging a fields as "is
mandatory for the system to work correctly" is wrong by design IMO. It should
be a column in the original table.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2023-12-24 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

--- Comment #8 from Martin Renvoize  ---
I use it in Bug 34324 - Merge OPACProblemReport and CatalogConcern functions

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2023-12-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

--- Comment #7 from Katrin Fischer  ---
Do you have a use case/example maybe?

I am a little hesitant because the linked fields are harder to query for
libraries and we need to join another table (performance?). Would we need
guidelines/agreement about when to use additional fields and when to extend the
original tables?

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2023-12-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

Martin Renvoize  changed:

   What|Removed |Added

 Blocks||34324


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34324
[Bug 34324] Merge OPACProblemReport and CatalogConcern functions
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2023-12-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

Martin Renvoize  changed:

   What|Removed |Added

 Status|NEW |Needs Signoff

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2023-12-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

--- Comment #6 from Martin Renvoize  ---
Created attachment 160176
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=160176=edit
Bug 35625: Add boolean flag to schema

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2023-12-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

--- Comment #5 from Martin Renvoize  ---
Created attachment 160175
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=160175=edit
Bug 35625: Prevent deletion at controller

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2023-12-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

--- Comment #4 from Martin Renvoize  ---
Created attachment 160174
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=160174=edit
Bug 35625: Update UI to prevent deletion/edition

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2023-12-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

--- Comment #3 from Martin Renvoize  ---
Created attachment 160173
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=160173=edit
Bug 35625: Update api definition

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2023-12-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

--- Comment #2 from Martin Renvoize  ---
Created attachment 160172
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=160172=edit
Bug 35625: DBIC Schema update

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2023-12-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

--- Comment #1 from Martin Renvoize  ---
Created attachment 160171
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=160171=edit
Bug 35625: Add is_system to additional_fields table

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2023-12-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

Martin Renvoize  changed:

   What|Removed |Added

   Assignee|koha-b...@lists.koha-commun |martin.renvoize@ptfs-europe
   |ity.org |.com

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 35625] Add support for system flag to additional fields

2023-12-21 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35625

Martin Renvoize  changed:

   What|Removed |Added

 Depends on||35044
 Blocks||32751


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32751
[Bug 32751] [Omnibus] Extend, improve and standardize additional fields
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35044
[Bug 35044] Additional fields: Allow for repeatable fields
-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/