Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduced new model of AliasEntry #1343

Merged
merged 27 commits into from
Dec 25, 2024

Conversation

userlocalhost
Copy link
Member

@userlocalhost userlocalhost commented Dec 12, 2024

This adds new model AliasEntry that indicates alias of target Item (Entry)

Remaining work

  • Create Django model for Alias (which is named AliasEntry)
  • Create API handler to CRUD Alias
  • Create API handler to be able to
    • import Aliases at once
  • Create WebUI to CRUD Alias @hinashi
    • List whole Aliases that are associated with specified Model and edit it in the same page.
  • Change implementation to regulate creating (and updating) Item that has same name with other Aliases (and vice versa) @userlocalhost
    • APIv2
    • Traditional implementation for Item
      • create
      • update
      • copy
      • import
      • APIv1
      • restore

@hinashi
Copy link
Contributor

hinashi commented Dec 12, 2024

CREATE TABLE `entry_aliasentry` (`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, `name` varchar(200) NOT NULL, `entry_id` integer NOT NULL);
ALTER TABLE `entry_aliasentry` ADD CONSTRAINT `entry_aliasentry_entry_id_8ec4a5a4_fk_entry_entry_aclbase_ptr_id` FOREIGN KEY (`entry_id`) REFERENCES `entry_entry` (`aclbase_ptr_id`);

@hinashi hinashi marked this pull request as draft December 12, 2024 08:12
userlocalhost and others added 12 commits December 16, 2024 08:38
Added processing to prevent to creating (and updating) Item when there is an Alias that has same name with specified Item.
Added following processings to prevent to creating (and updating) Item when there is an Alias that has same name with specified Item.

- traditional create view
- traditional edit view
- traditional copy job
- traditional import job
Added processing to prevent to creating (and updating) Item when there is an Alias
that has same name with specified Item for APIv1 handler.
This new API handler to be able to create multiple Aliases at once
@userlocalhost userlocalhost marked this pull request as ready for review December 24, 2024 05:44
Copy link

⚡ ⚡ ⚡ Now the latest apiv2 client npm package is available at:
https://github.com/dmm-com/airone/pkgs/npm/airone-apiclient-typescript-fetch/versions

@hinashi hinashi merged commit 28d8130 into dmm-com:master Dec 25, 2024
19 checks passed
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.

2 participants