+profile package details view to overlook associations
+voucher count is properly checked before deleting a package
+package_id filters for /api/customers and /api/vouchers
+Fake::Time replaced by Time::Warp for balance_interval tests
+cleanup
Change-Id: Idc34220a9d29c115453eeee2907e70a71cf9f0cc
+ synchronized contract balance catchup
+ balance interval resizing upon profile package transitions
+ dynamic interval length, interval start, carry-over propagation, ..
+ end-of-month 'preserve' mode correction for strictly aligned month intervals for start_mode=customer "create" timestamp
+ new api/balanceintervals resource to inspect contracts' balance interval histories
+ updated affected panel UI controllers
+ test case with time warps using Time::Fake
caveats:
- creating an invoice for a given 'period' (month) has to be refactored to select a disitnct balance interval. right now it takes the last interval in the month specified.
- generate_invoice.pl is broken and needs a major refactoring
Change-Id: I7bb54a83b76e510b1baa573a986d05400a7fec1e
-properly validate billing mapping intervals
-api/contracts and api/customers complete
+the problem with updating the "prepaid" preference remains at the moment
+billing_mappings field contains future (editable) mappings only, the full schedule is given in a separate field
+hal-links to all occurring billing profiles and networks
-extended tests: api-customer.t and api-contract.t
-api-billingnetworks.t test
-billing networks panel controller
+search by enclosed IP address
-panel UIs for billing networks, customers, contracts
+past billing mapping intervals that cannot be edited are displayed by a seperate hfh "block" part of the billing_profiles repeatable
-profile packages api, UI
+terminating billing profiles (MT#8645) will be broken
+fixed now: profile cannot be terminated unless there are:
-zero non-terminated customers, whose mappings contain the profile with future or open end
-zero profile packages, that link to the profile in either one of their initial-, underrun- or topup profile sets
+panel edit should work, termination wip
+topup_profiles w/o amounts
+contracts/customers API profile_package_id field:
+apply the package's initial profiles
+api/customer and api/contract profile definition modes (id/profiles/package)
+api OK, api-customer.t tests
+customer and contract panel UI with selector to specify actual billing mapping, schedule or profile package (same as api)
+terminate logic harmonized: profiles, networks, packages
+api tests updated
+prepare for merging: cleanup, enable tests
Change-Id: I6c0dec72f490b5731fc673cd393d6aeb08dd8143
To avoid warning: Use of uninitialized value $_[0] in join or string at /usr/lib/perl5/File/Spec/Unix.pm line 92
Change-Id: I4a281cd09dc069919c5d482f93efd6b1caaaeda7
Since we remove the /etc/nginx/sites-enabled/default file only in
the postinst script it's ought to be enough to depend on the
nginx-common package instead of pre-dependening on it.
This should fix our failing piuparts runs (where Pre-Dependencies
aren't handled properly yet).
Change-Id: Idebc6305cd302db16d23a03df64e266a026201a4
Dependency on libcatalyst-plugin-email-perl was removed already.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=748849 ->
libemail-send-perl was removed from unstable recently.
As libemail-send-perl is deprecated upstream, we should use
libemail-sender-perl instead and a dependency on
libemail-sender-perl was introduced already with git commit
1fd67eb3
This partially reverts commit f01d21a3de.
Still needed:
| Can't locate JSON/Tiny/Subclassable.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . CODE(0x43f0340) CODE(0x43f0250)) at /usr/share/perl5/Module/Runtime.pm line 317, <DATA> line 290.
| at /usr/lib/perl5/Moose.pm line 63
| Compilation failed in require at /usr/share/perl5/NGCP/Panel/Role/API.pm line 16, <DATA> line 290.
But not needed in Build-Depends, so only keep it in Depends.
Text of the message should be conformed with sales. Also it would be nice to apply templates to email body.
Only smarthost is working, spent 3 hours with exim debug and while left with smarthost. Attachments and so one looks good.
Removed fake data.
Fix data parameter. Tested data and client contracts.
Otherwise we might run into situations like that:
| Removing ngcp-schema ...
| Force-reloading ngcp-panel to handle schema changes
| [....] Restarting web application: ngcp-panel not runningstart-stop-daemon: unable to stat /usr/share/ngcp-panel/ngcp_panel_fastcgi.pl (No such file or directory)
| [FAIL] error ... failed!
| failed!
| invoke-rc.d: initscript ngcp-panel, action "force-reload" failed.
New dependencies:
* libjson-pointer-perl
* libjson-types-perl
Backported the following packages for Debian/wheezy (either
manually packaging or by copying/rebuilding from Debian/jessie if
present):
* libclass-accessor-lite-perl
* libjson-pointer-perl
* libjson-types-perl
Note regarding libjson-pointer-perl backport:
* Replaced dependency on liburi-perl (>= 3.31) with unversioned dependency.
* Replaced dependency on Module::Build 0.4003 with unversioned dependency in upstream files.
Move error_page to notfound_page. error_page is now for internal server errors.
Introduce logging option log_crash_state, enabled by default. Crash states are
written out compressed and encoded log-file-friendly, these are useful for
debugging but take a couple dozen kilobytes of disk space each.
Addressing:
| 17:43:21 /var/lib/dpkg/info/ngcp-panel.postinst: 19: /var/lib/dpkg/info/ngcp-panel.postinst: a2enmod: not found
| 17:43:21 dpkg: error processing ngcp-panel (--configure):
| 17:43:21 subprocess installed post-installation script returned error exit status 127
-- https://jenkins.mgm.sipwise.com/view/piuparts/job/ngcp-panel-piuparts/323/console
We use a2enmod in the postinst maintainer script, therefore
depending on the apache2 package.
Simplify back-uri for navigation utils calls.
Start using back_or navigation utils function for auto-checking
close-targets.
Move navigation stack check into auto of each controller.
| Error while loading /var/lib/jenkins/workspace/ngcp-panel-selenium/source/ngcp_panel.psgi: Can't locate MooseX/FileAttribute.pm in your Perl library.
Noticed via:
| Error while loading /var/lib/jenkins/workspace/ngcp-panel-selenium/source/ngcp_panel.psgi: Can't locate namespace/sweep.pm in your Perl library.
Address:
| Checking prerequisites...
| requires:
| ! Catalyst::Runtime (5.90015) is installed, but we need version >= 5.90040
| ! DBIx::Class::ResultSet::RecursiveUpdate (0.25) is installed, but we need version >= 0.30
|
| ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
| of the modules indicated above before proceeding with this installation
Address:
| Checking prerequisites...
| requires:
| ! Catalyst::ActionRole::ACL is not installed
| ! Catalyst::Runtime (5.90015) is installed, but we need version >= 5.90040
| ! DBIx::Class::ResultSet::RecursiveUpdate is not installed
| ! Data::Validate::IP is not installed
| ! File::Type is not installed
| ! HTML::FormHandler::Model::DBIC is not installed
| ! NGCP::Schema is not installed
| ! Regexp::Parser is not installed
| ! Text::CSV_XS is not installed
| recommends:
| * Devel::Cover is not installed
Addressing the following build errors:
1) Indirect call of method "method" on object "wait_socket" at inc/Local/Module/Build.pm line 8.
2) Indirect call of method "child" on a block at inc/Local/Module/Build.pm line 49.
3) Indirect call of method "try" on a block at inc/Local/Module/Build.pm line 67.
During package build time dh_auto_test currently fails:
http://paste.mgm.sipwise.com/show/327/ - needs investigation
by developers, but this should at least give us package builds
against Debian/wheezy.