• last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Addresses bug 1148, bug 1149 (and performance problems generally with plpgsql functions).

eliminate with(isstrict,iscachable) in favor of the new syntax strict, immutable, stable.

bump version of acs-kernel, acs-content-repository to 5.0.0b4, upgrade scripts provided.

Fix bugs with the following plpgsql procs:

acs_object__initialize_attributes: raise exception on null input.

acs_object__set_attribute: exception on null input

acs_object_util__get_object_type: remove the exception after the return statement

apm__unregister_package: properly default cascade_p

apm__unregister_service: properly default cascade_p

content_item.get_parent_folder: infinite loop on input if not a direct descendent of a folder (fixed on oracle too)

content_item__get_context: exception on null input, fix bug in exception print (wrong variable name)

content_item__is_publishable: returned t on null and invalid items

content_item__is_subclass: did not short curcuit loop when subclass found

content_item__move: would silently ignore null target_id

content_revision__copy_attributes: generate an exception on null input

content_revision__export_xml: generate exception if called (unimplemented in postgres)

content_symlink__copy: generate exception if called (unimplemented)

apm_package__parent_id: returned -1 on not found rather than null

content_folder__is_registered: no default provided in code for include_subtypes

content_keyword__is_assigned: no default for recurse...

content_revision__import_xml: generate exception if called (unimplemented in postgres)

content_revision__index_attributes: generate exception if called (unimplemented in postgres)

content_type__trigger_insert_statement: now generates exception on null input (was silent failure)

number_src: infinite loop on null input

rule_exists: fix case folded lookup

Declare the following stable:

get_func_definition get_func_header acs_message__name

acs_object_type_insert_tr acs_message__message_p

acs_object_type__pretty_name acs_message__first_ancestor

acs_object_type__is_subtype_p acs_objects_get_tree_sortkey

acs_object__name acs_object__default_name

acs_object__get_attribute_storage acs_object__get_attribute

acs_object__check_path acs_mail_link__link_p

acs_object_util__object_type_exist_p acs_object_util__get_object_type

acs_object_util__type_ancestor_type_p

acs_object_util__object_ancestor_type_p acs_object_util__object_type_p

acs_rel_type__role_pretty_name acs_rel_type__role_pretty_plural

party__email person__name person__first_names person__last_name

application_group__group_id_from_package_id

acs_user__receives_alerts_p group_contains_p

acs_message_get_tree_sortkey acs_mail_body__body_p

acs_permission__permission_p acs_mail_multipart__multipart_p

content_keyword__get_heading acs_group__name acs_group__member_p

rel_segment__get rel_segment__name rel_constraint__get_constraint_id

rel_constraint__violation rel_constraint__violation_if_removed

content_keyword__get_description site_node_get_tree_sortkey

timezone__convert_to_local timezone__get_offset

timezone__get_rawoffset timezone__get_abbrev timezone__get_date

timezone__isdst_p rdbms_date apm__register_p timezone__get_id

doc__get_proc_header apm__parameter_p apm__id_for_name apm__get_value

apm__get_value apm_package__initial_install_p apm_package__singleton_p

apm_package__num_instances apm_package__name

apm_package__highest_version apm_package__parent_id

apm_package_type__num_parameters content_keyword__is_leaf

acs_sc_msg_type__get_id acs_sc_msg_type__get_name

acs_sc_contract__get_id acs_sc_contract__get_name

acs_sc_operation__get_id acs_sc_impl__get_id acs_sc_impl__get_name

acs_sc_binding__exists_p cr_items_get_tree_sortkey

content_keyword__is_assigned content_keyword__get_path

content_template__is_template cr_keywords_get_tree_sortkey

content_template__get_path table_exists column_exists trigger_exists

trigger_func_exists rule_exists content_folder__is_registered

content_folder__get_label content_folder__get_index_page

content_type__get_template content_type__trigger_insert_statement

content_type__is_content_type content_item__get_root_folder

content_item__is_published content_item__is_publishable

content_item__is_valid_child content_item__get_id

content_item__get_template content_item__get_content_type

content_item__get_live_revision content_item__get_revision_count

content_item__get_context content_item__get_latest_revision

content_item__get_best_revision content_item__get_title

content_item__get_title content_item__get_publish_date

content_item__is_subclass content_item__is_index_page

content_item__get_parent_folder content_revision__get_number

content_revision__revision_name content_revision__is_latest

content_revision__get_content content_symlink__is_symlink

content_symlink__resolve_content_type content_extlink__is_extlink

content_folder__is_folder content_folder__is_empty

file_storage__get_root_folder file_storage__get_package_id

forums_message__root_message_id content_symlink__resolve

    • -114
    • +98
    ./postgresql/content-item.sql
    • -15
    • +55
    ./postgresql/content-keyword.sql
    • -46
    • +34
    ./postgresql/content-revision.sql
    • -14
    • +11
    ./postgresql/content-symlink.sql
    • -11
    • +11
    ./postgresql/content-template.sql
    • -0
    • +746
    ./postgresql/upgrade/upgrade-5.0.0b3-5.0.0b4.sql
  1. … 29 more files in changeset.
file upgrade-5.0.0b3-5.0.0b4.sql was initially added on branch oacs-5-0.

    • -0
    • +0
    ./oracle/upgrade/upgrade-5.0.0b3-5.0.0b4.sql
    • -0
    • +0
    ./postgresql/upgrade/upgrade-5.0.0b3-5.0.0b4.sql
  1. … 2 more files in changeset.
Merging bug fix from HEAD. Fixes bug#1163 and bug#1153.

New 19 parameter version of content_item__new and new

version of content_item__is_valid_child to allow setting and checking

or relation_tag. Fixes bug#1153 and bug#1163

fix to 1050, fixing references to input parameters

Fix content_item__move error and bug in content-image.sql.

Fixed missing declaration for v_revision_id in image__new_revision.

fixing content_item.rename for bug 1051, references to input parameter

Fixed typos.

Added optional name parameter to content_item content_folder content_extlink

content_symlink copy and move pl(pg)sql procedures. Oracle and Postgresql.

    • -15
    • +48
    ./postgresql/content-extlink.sql
    • -52
    • +109
    ./postgresql/content-item.sql
    • -21
    • +50
    ./postgresql/content-symlink.sql
Added PG define_function_args to a single PL/SQL proc, so we can use package_instantiate_object - need to add it to the rest

    • -0
    • +7
    ./postgresql/upgrade/upgrade-5.0d1-5.0d2.sql
  1. … 1 more file in changeset.
Added this file to upgrade to changes made for Oracle 9i support

    • -0
    • +5764
    ./oracle/upgrade/upgrade-4.7d6-5.0d1.sql
  1. … 4 more files in changeset.
Oracle9i porting changes

- Changed procedure names from delete to del

- Changed view declaration to use actual column names

- Changed "rel_constraints_violated_one" and "rel_constraints_violated_two"

(http://openacs.org/forums/message-view?message_id=81045)

  1. … 264 more files in changeset.
Fixed bug #615: extra unnecessary upgrade script

Merged 4.6.4d1 (unreleased) to HEAD. This marks the end of the life of the oacs-4-6 branch.

  1. … 814 more files in changeset.
1. I made it possible to let content_template.new(), and its PG equivalent,

create a revision of the template by simply providing the template in the 'text'

param.

2. Bug-fixed content::init, content::get_content and some other procs related

to the index.vuh in the CR. Virtual URLs are now more or less supported for items

of any content type if they have a content template associated with them.

If a content item associates a template to it (by registering it), it will have precedence

over the type's template. It will transparently act as a default, in other words.

    • -0
    • +7
    ./oracle/upgrade/upgrade-4.6.5-4.7d6.sql
    • -0
    • +7
    ./oracle/upgrade/upgrade-4.7d1-4.7d6.sql
    • -0
    • +83
    ./postgresql/upgrade/upgrade-4.6.5-4.7d6.sql
    • -0
    • +83
    ./postgresql/upgrade/upgrade-4.7d1-4.7d6.sql
  1. … 10 more files in changeset.
merge of 4.6.3b1 to HEAD

    • -0
    • +5
    ./oracle/upgrade/upgrade-4.6-4.6.1.sql
    • -0
    • +11
    ./oracle/upgrade/upgrade-4.6.1-4.6.2.sql
    • -0
    • +483
    ./oracle/upgrade/upgrade-4.6.2-4.6.3.sql
    • -0
    • +1908
    ./oracle/upgrade/upgrade-4.6.4-4.6.5.sql
  1. … 87 more files in changeset.
adding missing functions name and revision-name

  1. … 1 more file in changeset.
is_valid_child needs relation to determine if its a valid child. needs upgrade script

file upgrade-4.6.4-4.6.5.sql was initially added on branch oacs-4-6.

    • -0
    • +0
    ./oracle/upgrade/upgrade-4.6.4-4.6.5.sql
    • -0
    • +0
    ./postgresql/upgrade/upgrade-4.6.4-4.6.5.sql
Removed the vile fs_simple_objects added by OF to store URLs in file

storage despite the existence of a non-versioned URL type in the content

repository. Upgrade scripts provided. I added Tcl API to the content

repository to honor our desire to export the SQL API to Tcl client code.

1. folder contents are now counted correctly (bug fix)

2. The fs_objects view is now usable in PG (it was a UNION view before and

therefore didn't scale)

3. Code in file storage is considerably simpler now and all file storage

objects are now stored in the content repository, as they should

be.

The Oracle version may need some work I'll finish testing this afternoon.

    • -0
    • +1908
    ./oracle/upgrade/upgrade-4.6.4-4.6.5.sql
    • -1749
    • +0
    ./postgresql/packages-create.sql
    • -0
    • +186
    ./postgresql/upgrade/upgrade-4.6.4-4.6.5.sql
  1. … 39 more files in changeset.
tweak the mappings a little and make the text descriptions easier to scan in select widget

Merged over workflow/bug-tracker changes from 4.6 branch

    • -7
    • +0
    ./oracle/upgrade/upgrade-4.6.1-4.7d1.sql
    • -0
    • +7
    ./oracle/upgrade/upgrade-4.6.3-4.6.4.sql
    • -15
    • +1
    ./postgresql/upgrade/upgrade-4.5-4.6.sql
    • -0
    • +146
    ./postgresql/upgrade/upgrade-4.6.3-4.6.4.sql
  1. … 6 more files in changeset.
Added check that content type is a subclass of content_revision, so you don't accidentally subclass something else, like I did

file upgrade-4.6.3-4.6.4.sql was initially added on branch oacs-4-6.

    • -0
    • +0
    ./oracle/upgrade/upgrade-4.6.3-4.6.4.sql
    • -0
    • +0
    ./postgresql/upgrade/upgrade-4.6.3-4.6.4.sql
Upgrade to 4.6.2: A few bug fixes, Tcl API for keywords.

    • -0
    • +7
    ./oracle/upgrade/upgrade-4.6.3-4.6.4.sql
    • -15
    • +1
    ./postgresql/upgrade/upgrade-4.5-4.6.sql
    • -0
    • +146
    ./postgresql/upgrade/upgrade-4.6.3-4.6.4.sql
  1. … 6 more files in changeset.
Partial conversion from timestamp to timestamptz for PG 7.3 (need to keep

time zone timestamps so dumps from PG 7.2 installs will still work)

  1. … 7 more files in changeset.
Merged from HEAD: Fixed typo (extra parenthesis) in content_keyword__is_assigned

Fixed typo (extra parenthesis) in content_keyword__is_assigned

register_child_type would only register one type per parent since it

ignored relation tag when checking if the relation existed.

is_valid_type failed with more than one type since it wanted to count

max_n but did not sum.

needs an upgrade script.